I am calling a webservice which return me back a json object.
The json object encodes the date. I am trying to find a way to convert that date to m-d-Y format in php.
Json object is {“DateOfBirth”:”/Date(387518400000-0400)/”} this date is 02-15-1982.
The webservice which I am calling is in .NET, and it converts the date to the JSON object. Not sure if this would help.
Thanks in advance
Thanks,
Tanmay
If there’s a chance you said 02-15-1982 but really meant 04-12-1982, then I have a solution. If not, then there’s a gap in the time of about 60 days, which can be accounted for with a bit more math.
Here’s my solution for now:
This returns:
04-12-1982