Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#26 Date inputs

open
Simon Booth
None
5
2012-09-19
2005-01-16
Wes Hooper
No

A member of my family commented that inputting dates in
the YYYY-MM-DD format seemed awkward. I've got a
function which creates 3 HTML select lists, which I
often use and don't mind posting here when I dig it
out. Not sure whether it's quite the right to use here
though - a drop down list for years would have to be
very long in order to not be restrictive and typing the
numbers in seems quicker to me...

Maybe simply three text input boxes would be better?

Discussion

  • Logged In: YES
    user_id=1752384
    Originator: NO

    What about a text entry field with an option to open a calendar? Arrows to select more or less for century / decade / year to quickly get somwhere. Something like this...

    <<< << < 2007 > >> >>>
    < December >
    Sun Mon Tue Wed Thu Fri Sat
    1
    2 3 4 5 6 7 8
    9 10 11 12 13 14 15
    16 17 18 19 20 21 22
    23 24 25 26 27 28 29
    30 31

     
  • Phoenix Rising
    Phoenix Rising
    2008-08-02

    Logged In: YES
    user_id=2036919
    Originator: NO

    Some people wouldn't be happy, no matter what method you use. I just explain to my users that this is an international format that goes from the largest to the smallest -- year-month-day. One common alternative is a calendar where you enter the year, then the month, and select the date from the calendar. Single and double arrows could be used to switch between years and months.

    Perhaps a user configuration option could be included to allow the user to select the date format they prefer.