I see that .NET
can encode the dates like /Date(1365004652303-0500)/
when it generate the JSON response for a RestFull API response (for example read here).
My question is how can I generate the same output for my date properties inside an object when I use json_encode
function to encode that object in the PHP.
I don't mean how to do it with an algorithm. I know how to write the algorithm! I would like to do it in a way that the front-end could understand this property is a date! I don't want to transfer it as a simple text!