/Date(N)/
is usually the format for dates serialized by the built-in WCF JSON serializer in .NET. The value can then be reconstructed by calling new Date(N)
in JavaScript.
Running that in JavaScript will show why this date is very likely just wrong:
new Date(-62135596800000)
// Date 0001-01-01T00:00:00.000Z
As you can see, you get the 0001-01-01 00:00:00.00
. This also happens to be the default value in .NET for empty DateTime
objects:
default(DateTime).ToString("u") // 0001-01-01 00:00:00Z
new DateTime(0).ToString("u") // 0001-01-01 00:00:00Z
So, sorry to say it like that, but that server is just broken.
That all being said, once you get a valid date, you can parse the number in Python using datetime.fromtimestamp
or datetime.utcfromtimestamp
:
>>> from datetime import datetime
>>> datetime.fromtimestamp(1483120713887 // 1000)
datetime.datetime(2016, 12, 30, 18, 58, 33)