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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…