4

I'm consuming an API (XML output) with PHP and it is returning all timestamps in the following format. Believe it or not this isn't in the docs anywhere.

Is this a standard date format? What format is this timestamp in? How can I convert it to a unix timestamp in PHP?

/Date(-62135575200000-0600)/

andrhamm
  • 3,924
  • 4
  • 33
  • 46

2 Answers2

3

It's the default JSON format of date.

Mob
  • 10,958
  • 6
  • 41
  • 58
Bas Slagter
  • 9,831
  • 7
  • 47
  • 78
  • 1
    Spot on. . More info here http://stackoverflow.com/questions/206384/how-to-format-a-json-date – Mob Nov 18 '11 at 15:00
0

Looks like a .NET Date string, which would mean that it is milliseconds since 1970, and the timezone.

masam
  • 2,268
  • 1
  • 22
  • 24