-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change date format #32
Comments
it returns a date, angular or javascript formats it to the iso... you can simply do something like |
Thanks.. that really helped! What I'm still confused about is how to change the way the date displays as it get's placed by the datepicker in the datepicker field. For an input field using toDateString on the value attribute doesn't seem to work reliably.
That seems to work if you click a date, but once you click a time then it goes back to YYYY-MM-DD H:M format. |
@geoidesic |
The trouble with an angular format string is that it's not automatically localised, whereas toDateString() is. |
@geoidesic |
The output from this seems to be ISO (i.e. YYYY-MM-DD"T"HH:MM:SS"0Z")
Is there any way to alter the output format?
Odd thing is that it shows the correct format in the field, but when the data from the model that the field updates is submitted via $http the date's format is ISO.
The text was updated successfully, but these errors were encountered: