Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

datepickerPopup: date parsing fails #1610

Closed
Birowsky opened this issue Jan 18, 2014 · 3 comments
Closed

datepickerPopup: date parsing fails #1610

Birowsky opened this issue Jan 18, 2014 · 3 comments

Comments

@Birowsky
Copy link

screen shot 2014-01-18 at 18 26 11

I configured the datepickerPopup via the config constant with this hash:

dateFormat: 'dd.MM.yyyy'

Thanx to this, once clicked on the datepicker, the value is being formatted nicely, but, as I'm typing, the input value is not reaching the model because it is failing the validator.

Shortly, the new Date(dateStr) constructor is expecting

'MM.dd.yyyy' instead of what i want 'dd.MM.yyyy'

hence, it fails.

@dotcom9
Copy link

dotcom9 commented Jan 27, 2014

+1, using format "dd/MM/yyyy"

@stgunholy
Copy link

It is really strange to specify how the value should look like and not being able to parse it back

@bekos
Copy link
Contributor

bekos commented Feb 9, 2014

Duplicate of #1289

@bekos bekos closed this as completed Feb 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants