Skip to main content

Search and Top Navigation

#10709 closed bug (notabug)

Opened November 26, 2014 12:31AM UTC

Closed November 26, 2014 12:57AM UTC

DatePicker does not correctly use 2-digit year for dateFormat

Reported by: sp3 Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.11.2
Keywords: Cc:
Blocked by: Blocking:

You can see this on the current jQuery UI web site. Click a date on the popup and you will get a date with a 4-digit year, even though the default dateFormat is as follows -- dateFormat: "mm/dd/yy". It should show a 2-digit year.

There is an additional related bug that if you call the public Datepicker function 'parseDate' with a 2-digit year format and a date with a 2-digit year, it will throw an exception saying that it cannot recognize the year.

This was working fine in 1.10.

Attachments (0)
Change History (1)

Changed November 26, 2014 12:57AM UTC by scottgonzalez comment:1

resolution: → notabug
status: newclosed

yy is a four digit year. Please see the documentation for more information.