June
27th,
2017
A JavaScript date can be written as a string:
Tue Jun 27 2017 14:24:16 GMT+0900 (KST)
or as a number:
1498541056831
Dates written as numbers, specifies the number of milliseconds since January 1, 1970, 00:00:00.
There are 4 ways of initiating a date:
JavaScript counts months from 0 to 11. January is 0. December is 11.
When setting a date, without specifying the time zone, JavaScript will use the browser’s time zone.
When getting a date, without specifying the time zone, the result is converted to the browser’s time zone.