Returns the sequential serial number that represents a particular date. If the cell format was General before the function was entered, the result is formatted as a date.

Syntax

DATE(year,month,day)

Year The year argument can be one to four digits. Microsoft Excel interprets the year argument according to the date system you are using. By default, Excel for Windows uses the 1900 date system; Excel for the Macintosh uses the 1904 date system.

For the 1900 date system

For the 1904 date system

Month is a positive or negative integer representing the month of the year from 1 to 12 (January to December).

Day is a positive or negative integer representing the day of the month from 1 to 31.

Remarks

Example

The example may be easier to understand if you copy it to a blank worksheet.

How to copy an example

  1. Create a blank workbook or worksheet.
  2. Select the example in the Help topic.

    Note Do not select the row or column headers.

    selecting an example from helpSelecting an example from Help

  3. Press CTRL+C.
  4. In the worksheet, select cell A1, and press CTRL+V.
  5. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
1
2
A B C
Year Month Day
2008 1 1
Formula Description (Result)
=DATE(A2,B2,C2) Serial date for the date above, using the 1900 date system (1/1/2008 or 39448)

Note To view the number as a serial number, select the cell, and then on the Sheet tab, in the Number group, click the arrow next to Number Format, and then click Number.

See also: