How does JavaScript store dates in objects of Date type?

Options
- The number of days since January 1st, 1900
- The number of seconds since January 1st, 1970
- The number of milliseconds since January 1st, 1970
- The number of picoseconds since January 1st, 1970


CORRECT ANSWER : The number of milliseconds since January 1st, 1970

Discussion Board
Date datatype

It actually stores the seconds since 1/1/1970, so epoch + 1 is midnight of 1/2/1970.

epoch + 0.001 is one millisecond past midnight on 1/1/1970.

Eric B Weimer 05-17-2017 09:13 PM

Java script

Please show me the correct answer

Japesh 08-3-2016 04:46 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement