datepicker.parseDate

datepicker.parseDate

Hi,

I have a curious problem with datepicker.parseDate:

  1. $.datepicker.parseDate('dd/mm/yyyy', '22/04/2010');
generates this error in the FireBug console:

uncaught exception: Missing number at position 10

Curiously, with this format, there is no position 10 (0-based indexing)

However, adding a 0 at position 10, like this:

  1. $.datepicker.parseDate('dd/mm/yyyy', '22/04/20100');

does not generate an error, but it does not parse the date correctly either:

Sat Apr 22 2000 00:00:00 GMT+0200