Date
Description:
Creates an object representing a specific date.
Syntax:
Date(year, month, day)
Type:
DateTime
Arguments:
Argument |
Type |
Description |
year |
Numeric |
The year. |
month |
Numeric |
The month (1 to 12). |
day |
Numeric |
The day of the month. |
Returns:
A DateTime object representing the specified date.
Examples:
To create a date representing Jan 20 2009.
Expression |
Result |
Date(2009,1,20) |
1/20/2009 12:00:00 AM |