Date

suggest change

Syntax

Parameters

Parameter Details
value The number of milliseconds since 1 January 1970 00:00:00.000 UTC (Unix epoch)
dateAsString A date formatted as a string (see examples for more information)
year 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 0 and 99 have special meaning. See the examples.
month 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.
day Optional: The date, in the range 1-31.
hour Optional: The hour, in the range 0-23.
minute Optional: The minute, in the range 0-59.
second Optional: The second, in the range 0-59.
millisecond Optional: The millisecond, in the range 0-999.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Date:
* Syntax

Table Of Contents
11 Arrays
12 Objects
14 Classes
16 Map
17 Set
24 Loops
27 Date
29 Scope
30 AJAX
35 Cookies
41 JSON
44 Fetch
45 Modules
46 Screen
64 Console
68 Symbols
73 Modals
76 Events
86 Proxy
89 WeakMap
90 WeakSet
102 Tilde