contents   index   previous   next



Date.UTC(year, month, day[, hours[, minutes[,

         seconds[, milliseconds]]]])


year - A year, represented in four or two-digit format after 1900. NOTE: For year 2000 compliance, this year MUST be represented in four-digit format


month - A number between 0 (January) and 11 (December) representing the month


day - A number between 1 and 31 representing the day of the month. Note that Month uses 1 as its lowest value whereas many other arguments use 0


hours - A number between 0 (midnight) and 23 (11 PM) representing the hours


minutes - A number between 0 (one minute) and 59 (59 minutes) representing the minutes. This is an optional argument which may be omitted if Seconds and Minutes are omitted as well.


seconds - A number between 0 and 59 representing the seconds. This parameter is optional.


milliseconds - A number between 0 and 999 which represents the milliseconds. This is an optional parameter.



number - milliseconds from midnight, January 1, 1970, to the date and time specified.



The method interprets its parameters as a date. The parameters are interpreted as referring to Greenwich Mean Time (GMT).



Date object, Date.parse(), Date setTime()



// The following code creates a Date object

// using UTC time:

foo = new Date(Date.UTC(1998, 3, 9, 1, 0, 0, 8))