This repository has been archived by the owner on May 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 207
Usage - Why am I unable to use a string date formatted in ISO? #120
Comments
Yes, I've the same issue. I've tried many formats and options and still doesn't work. |
Hi @cleon26 , |
same problem in one old project |
I believe it parses these if there is no date format, however it's safest to use a Date in the model. So new Date("2014-08-20T00:00:00-04:00") will work to parse your iso date. |
the problem is that even example
where directive ui-date-format doesn't work, but maybe it is only on angular v1.5, because I didn't test this with previous versions |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
My dates are coming back from the server as strings formatted like this:
"2014-08-20T00:00:00-04:00"
What is the trick for making this work with the date picker? I've tried several variations of ui-date-format without success. I get different errors about being unable to parse the string.
The text was updated successfully, but these errors were encountered: