How to convert a date in the format C # '/ Date (1504020443813-0300) /' to PHP? [duplicate]

1

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?

    
asked by anonymous 24.07.2018 / 19:26

0 answers