Skip to main content

Search and Top Navigation

#5285 closed bug (duplicate)

Opened March 05, 2010 04:34AM UTC

Closed November 22, 2010 06:36PM UTC

Last modified October 11, 2012 09:15PM UTC

datepicker.parseDate doesn't handle short years properly

Reported by: Ivan Peters Owned by:
Priority: minor Milestone:
Component: ui.datepicker Version: 1.7.2
Keywords: parseDate Cc:
Blocked by: Blocking:
Description

The parseDate code appears to cheat slightly by assuming that each component will use the maximum number of digits or will have some sort of delimiter. In the case of the year, it assumes up to 4 digits which can be a problem for dates using this format:

yddmm

$.datepicker.parseDate("yddmm", "100105") will fail with "Missing number at position 6".

Attachments (0)
Change History (4)

Changed November 22, 2010 06:33PM UTC by pheiberg comment:1

This should have been resolved by the fix for #6659.

Changed November 22, 2010 06:36PM UTC by scottgonzalez comment:2

resolution: → duplicate
status: newclosed

Thanks, closing as a duplicate.

Changed November 22, 2010 06:36PM UTC by scottgonzalez comment:3

Duplicate of #6659.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:4

milestone: TBD

Milestone TBD deleted