Skip to main content

Search and Top Navigation

#2267 closed enhancement (wontfix)

Opened January 31, 2008 11:45PM UTC

Closed February 20, 2008 11:39PM UTC

Last modified May 24, 2008 03:39AM UTC

ui.datepicker: minDate maxDate

Reported by: h3r2on Owned by: iMarc
Priority: major Milestone:
Component: ui.core Version: 1.2.2
Keywords: datepicker, ui Cc:
Blocked by: Blocking:
Description

These functions are misleading. One would expect that a given minDate would allow that minYear to show up in the select for the year by default, as well as the maxYear. However, by only allowing -+10yrs this makes setting birth dates very unintuitive for users as they must select the drop down multiple times if their year is not with in the original set of dates.

So:

$('#restrictDates').attachDatepicker({minDate: new Date(1983, 1,1), 
    maxDate: new Date(2010, 1, 1)});

should give me a year select that has all the years between 1983 and 2010. I think this would greatly enhance the usability of the plugin.

Attachments (0)
Change History (3)

Changed February 08, 2008 04:14PM UTC by paul comment:1

owner: pauliMarc

Changed February 20, 2008 11:39PM UTC by kbwood comment:2

resolution: → wontfix
status: newclosed

Just set yearRange as well.

$('#restrictDates').attachDatepicker({minDate: new Date(1983, 1,1),

maxDate: new Date(2010, 1, 1), yearRange: '1983:2010'});

Changed May 24, 2008 03:39AM UTC by comment:3

milestone: 1.2.3

Milestone 1.2.3 deleted