- new Date();
- new Date(value);
- new Date(dateAsString);
- new Date(year, month[, day[, hour[, minute[, second[, millisecond]]]]]);
|The number of milliseconds since 1 January 1970 00:00:00.000 UTC (Unix epoch)|
|A date formatted as a string (see examples for more information)|
|The year value of the date. Note that |
month must also be provided, or the value will be interpreted as a number of milliseconds. Also note that values between
99 have special meaning. See the examples.
|The month, in the range |
0-11. Note that using values outside the specified range for this and the following parameters will not result in an error, but rather cause the resulting date to "roll over" to the next value. See the examples.
|Optional: The date, in the range |
|Optional: The hour, in the range |
|Optional: The minute, in the range |
|Optional: The second, in the range |
|Optional: The millisecond, in the range |