new Date()
Top  Previous  Next


SWiSH Player Support
SWF5 or later - Supported Internally

Syntax
DateObj = new Date(year, month {, date {, hour {, min {, sec {, ms }}}}});

Arguments
year: This is a four-digit number used to specify the year.
month:
This is a number from 0 to 11 used to represent the month (0 being January, 1 being February, etc.)
date:
This is a number from 1 to 31 used to represent the day of the month. This is an optional argument.
hour: A number from 0 to 23 used to represent the current hour (0 being midnight, 23 being 11:00pm). This is an optional argument.
min:
A number from 0 to 59 used to represent the current minute. This is an optional argument.
sec:
A number from 0 to 59 used to represent the current minute. This is an optional argument.
ms:
A number from 0 to 999 used to represent the current millisecond. This is an optional argument.

Returns
an integer

Description
Object; This is the used to create or define a new Date Object. It can be used to create a new Date Object based on the current Local Time, or it can be used to create a reference Date Object based on the arguments assigned to it.