I’m receiving .NET’s DateTime object as json string through my asmx webservice and trying to parse it with help of gson library. But seems like there’s no support to parse .net style DateTime.
How can i parse it easily into java’s Date object using Gson without much hassle?
the string i receive is like:
"DateOfBirth":"\/Date(736032869080)\/"
P.S. I would not like to make any modifications at server side to receive DateTime as a Long value
Like this:
Or use this example instead & follow the “Dealing with WCF Microsoft JSON Dates” chapter.