-1

I have a set of numbers that correspond to the following dates in javascript.

1499040000 -> 07/03/17
1498780800 -> 06/30/17
1498694400 -> 06/29/17
1498608000 -> 06/28/17

I am trying to figure out what kind of javascript function can correspond the number to the date.

user3848207
  • 3,737
  • 17
  • 59
  • 104

1 Answers1

1

That number is an Unix Epoch Time:

It is the number of seconds that have elapsed since 00:00:00 Thursday, 1 January 1970,[2] Coordinated Universal Time (UTC), minus leap seconds.

To convert it, you can use the first and accepted answer from this question

Elias Soares
  • 9,884
  • 4
  • 29
  • 59