I have a controller action that effectively simply returns a JsonResult of my model. So, in my method I have something like the following:
return new JsonRes
Annoying, isn't it ?
My solution was to change my WCF service to get it to return DateTimes in a more readable (non-Microsoft) format. Notice below, the "UpdateDateOriginal
", which is WCF's default format of dates, and my "UpdateDate
", which is formatted to something more readable.
Here's how to do it:
Changing WCF date format
Hope this helps.