Constructs a date from the specified year, month and day of the month.
Syntax Copy Code |
---|
DATE( Integer year, Integer month, Integer day ) → Date |
This method computes the date's serial number given a year, a month, and a day of the Gregorian calendar. Fractional values are automatically truncated. If month is greater than 12 and day is greater than the days of month, the resulting date will be computed by rolling over to the next month or year as necessary. If month or day are negative, their magnitude is subtracted from the first month of the specified year or the first day of the specified month.
If the result is displayed in a cell with Format set to General, the value will be formatted as a date. To see the value as a serial number, set the format of the cell to one of the numeric formats.
Formula Copy Code |
---|
=DATE(2013,1,1) |
Function Reference
TIME Function