I'm using web API controller in my ASP.net MVC 4 project.
My simple scenario is:
I have a simple method that return a person object,that includes a string property and a date time property. On the client side, after getting this person object from the Web API method, I have a JSON object. Is it possible to convert the JSON date automatically to JavaScript date? I'm trying to avoid do it manually.
Just to be clear,
What I meant is doin it without:
var date = new Date(jsonDateStr);
After getting the object from the server, I want to avoid initializing the date property
with a java script date object as above.
Every time it's a different object, "person" was just an example.
BTW,
The JSON date, that I'm using is in ISO format, e.g: ""2013-07-16T08:50:47.193Z""
Thanks,