Datepicker: Date format ymmdd not parsed correctly
|Reported by:||pheiberg||Owned by:|
When using a date format containing y (two digit year), the date is not parsed correctly. This also results in that setting the dateFormat option on datepicker to such a date format causes the calender to not select the selected date in the calendar.
Failing test to reproduce error:
equalsDate($.datepicker.parseDate('ymmdd', '010203'), new Date(2001, 2 - 1, 3), 'Parse date ymmdd - default cutoff');
The error was reproduced in both Chrome and IE8 in jQuery UI versions 1.8.6 and the most recent clone of master.
Change History (7)
comment:2 Changed 5 years ago by scottgonzalez
- Milestone changed from TBD to 1.9
- Status changed from new to open
- Summary changed from Date format ymmdd not parsed correctly to Datepicker: Date format ymmdd not parsed correctly
comment:3 Changed 5 years ago by pheiberg
- Resolution set to fixed
- Status changed from open to closed