In some applications that use C#
, when I return the value in JSON
, the DateTime
object is serialized to a weird format, something like this:
/Date(1504020443813-0300)/
And I'll get this in PHP.
When I receive this value in PHP, I will need to convert it to the DateTime
object.
So, how can I convert this format to DateTime
of PHP? Is there anything native to PHP, or do you have to use regex
or something like that?