When I parse a DateTime to json in .Net it returns a string (i.e. \"\\/Date(1249335194272)\\/\"
). How do I make it return a js Date object constructor not wrap
I've found that this is a useful technique for dealing with this problem:
http://icanmakethiswork.blogspot.co.uk/2012/04/beg-steal-or-borrow-decent-javascript.html
It allows DateTimes to be serialised as ISO 8601 date strings which can be used with the JavaScript Date constructor and has the bonus of being human readable.