freqdec/datePicker

Autoformatting changes the format

Opened this issue · 1 comments

If I set the format to %d-%m-%Y and type 01-04-2001 or 01 04 2001, the date stays/is converted to 01-04-2001.
However, if I type 01 04 01 or 01-04-01, the format is changed to %m-d%-%Y and I end up with 04-01-2001

I think what you are seeing is the backup javascript implementation of date.Parse being used. This happens then the input string cannot be matched to the format you set. 01 04 01 is being parsed as January 4th 2001, which is then being displayed as 04-01-2001 which is the format you set.

I've had similar issues