Opened 11 years ago

Closed 11 years ago

#4755 closed bug (wontfix)

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

Change History (3)

comment:1 Changed 11 years ago by Scott González

Component: ui.coreui.datepicker
Milestone: TBD1.8

comment:2 Changed 11 years ago by bhornseth

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' });

comment:3 Changed 11 years ago by kbwood

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.