Date functions

Provides a reference of date functions.

Table 1. Date functions
Syntax Effect
Date.UTC(year, month, [ , day [ , hours [ , minutes [ , seconds [ , mseconds ]]]]])

Returns a number representing the given date taken in UTC. The arguments are:

year: any integer

month: range 0-11, where 0 = January, 1 = February, and so on

day: range 1-31, default 1

hours: range 0-23, default 0

minutes: range 0-59, default 0

seconds: range 0-59, default 0

mseconds: range 0-999, default 0

Date.parse(string) Same as new Date(string), but the result is returned as a number rather than as a date object.