Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Add leading zeros capability to datetime_select and date_select

#1761

Attached is a patch to add the option :leading_zeros_month_and_day to form helpers datetime_select and date_select. Obviously it adds leading zeros to the month and day fields to bring them up to fixed 2 digit width. The month is only affected if :use_month_numbers is also set. Patch also contains tests.

Reported by Colin Law · January 15th, 2009 @ 02:31 PM

State: wontfix
Milestone: 2.x
Assigned to: Pratik Pratik
Importance: Low

Activity

  1. Pratik
    Pratik
    • Assigned user set to Pratik
    • State changed from new to wontfix
    • Title changed from Patch to add leading zeros capability to datetime_select and date_select to Add leading zeros capability to datetime_select and date_select

    I think this is not very frequently used to be in the core. I'd suggest putting up a plugin at github and we can reconsider it for inclusion in the core if many people use it.

    Thanks.

    March 10th, 2009 @ 05:29 PM

  2. Ryan Bigg
    Ryan Bigg
    • Tag cleared.
    • Importance changed from to Low

    Automatic cleanup of spam.

    October 11th, 2010 @ 10:58 AM