Skip to main content

Search and Top Navigation

#4755 closed bug (wontfix)

Opened August 06, 2009 08:22PM UTC

Closed November 30, 2009 12:39AM UTC

Default date goes to 1900 instead of 2000

Reported by: moresandeep Owned by:
Priority: minor Milestone: 1.8
Component: ui.datepicker Version: 1.7.2
Keywords: Calendar Cc:
Blocked by: Blocking:
Description

In the JQuery calendar if the value of date entered is 03/05/29 and hit enter it interpreters as 1929 instead of 2029

Attachments (0)
Change History (3)

Changed August 12, 2009 12:50PM UTC by scottgonzalez comment:1

component: ui.coreui.datepicker
milestone: TBD1.8

Changed November 27, 2009 06:58PM UTC by bhornseth comment:2

This isn't a bug. The shortYearCutoff option is defaulted to +10, which currently would default any 2-digit year greater than 19 (meaning 2019) to the previous century. Changing the option to '+20' would solve the opener's problem for the given example.

Example:

$('.selector').datepicker({ shortYearCutoff: '+20' });

Changed November 30, 2009 12:39AM UTC by kbwood comment:3

resolution: → wontfix
status: newclosed