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,365
  • 4
  • 29
  • 46

2 Answers2

3

It's the default JSON format of date.

Mob
  • 10,739
  • 6
  • 39
  • 57
Bas Slagter
  • 9,721
  • 7
  • 48
  • 74
  • 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,248
  • 1
  • 20
  • 23