TIME AND DATE IN JAVASCRIPT
JavaScript calculates dates as the number of milliseconds since the "epoch," which began on January 1, 1970. If you want to work with dates prior to this, it may cause problems in older browsers. You're not restricted to displaying dates in milliseconds, but when you ask JavaScript to calculate the difference between two dates, for example, it does this in milliseconds.
Date can include the month, the day of the month, the day of the week, and the year. The days of the month are numbered starting with 1. The days of the week are numbered starting with 0 -- day 0 is Sunday, day 1 is Monday, and so on.
