DATE

Description

DATE returns the serial number of the supplied date.

Syntax

DATE ( year, month, day )

 

Parameter

Description

year

A number from 1900 to 2078. If year is between 1920 and 2019, you can specify two digits to represent the year; otherwise, specify all four digits.

month

A number representing the month (for example, 12 represents December). If a number greater than 12 is supplied, the number is added to the first month of the specified year.

day

A number representing the day of the month. If the number you specify for day exceeds the number of days in that month, the number is added to the first day of the specified month.

Examples

This function returns 34506:

DATE(94, 6, 21)

This function returns 36225:

DATE(99, 3, 6)

 Note:

If an Invalid formula syntax warning appears, check whether the comma is set as the list separator in your regional settings on the Windows Control Panel. If a different character is set as the list separator, use this character in the above examples in place of the comma. (Windows XP: Access the Windows Control Panel and select Regional and Language Options. On the Regional Options tab page, click Customize. On the Numbers tab page, check which character is the default list separator on your computer. Use this character in the above examples instead of the comma.

Also, see

DATEVALUE

DAY

MONTH

NOW

TIMEVALUE

TODAY

YEAR