views:

18

answers:

1

I am serializing a complex object with lot of properties of other Types and Lists to JSON form but the issue is with DateTime properties. I get the epoch time with JavascriptSerializer (rather than mm/dd/YYYY).

Is there any way I can get the datetime in mm/dd/YYYY : HH.MM.SS form without modifying the class defination of the object i am serialzing.

A: 

This cannot be achieved using JavaScriptSerializer and without modifying the underlying class. This could be achieved with Json.Net.

Darin Dimitrov