Convert JSON date

bvdijk

Member
Licensed User
Longtime User
What is the easiest way to convert a returned JSON date, like this:

B4X:
/Date(1325052000000)/

into a human readable date?

Thanks in advance,
Barry
 

bvdijk

Member
Licensed User
Longtime User
I have no experience with Json, but the value of 1325052000000 are ticks,
if date = 1325052000000 , date beeing a Long variable
you get the date with DateTime.Date(date)

Best regards.

Thank you Klaus, you're right, easy enough. I just have to filter the numerical part out of the returned string.
 
Upvote 0
Top