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
You can use this package to parse the JSON dates:
https://github.com/webapix/dot-net-json-date-formatter
use \Webapix\DotNetJsonDate\Date; Date::toDateTime('/Date(387518400000-0400)/'); // return with \DateTime object