ERRest and JSON Dates
ERRest and JSON Dates
- Subject: ERRest and JSON Dates
- From: Ted Archibald <email@hidden>
- Date: Wed, 28 May 2014 10:46:22 -0600
Been working on a project where I'm consuming JSON from a web app and encountered a problem with dates back and forth.
This is the date format I'm getting from _javascript_ (new Date).toJSON():
2014-05-28T04:27:49.722Z
And this is the date format ERRest seems to want
2014-05-28T04:27:49Z
If I use the _javascript_ date I get errors, but if I remove the '.722' everything works fine.
Is there an easy way to set ERRest to accept the _javascript_ style of date?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden