ExcelDateBeginner

DATE

Creates a valid Excel date from individual numbers.

Read the syntaxReview worked examplesOpen the spreadsheet app
=DATE(year, month, day)

This static page keeps the function indexed for search, while the spreadsheet app handles interactive exploration and saved formulas.

What the function does

Overview

Creates a valid Excel date from individual numbers.

The DATE function is the primary tool for constructing a valid Excel serial date from separate year, month, and day integers. It is essential for ensuring date consistency across different regional settings, as it avoids the ambiguity of text-based date entry (e.g., 01/02/2023 being read as January 2nd or February 1st). A powerful technical feature of DATE is its ability to handle 'overflow' and 'underflow' automatically; for instance, supplying 13 for the month will roll over to January of the following year, and supplying 0 for the day returns the last day of the previous month. This makes it ideal for complex date arithmetic. Best practices include using four-digit years to avoid ambiguity, as Excel interprets years 0-1899 by adding 1900 to the value. Users should note that the function returns a serial number; if the result appears as a raw number like 45134, you must apply a Date format to the cell to display it correctly.

Quick reference

Syntax

=DATE(year, month, day)

Inputs

Arguments

yearThe year number (4 digits recommended)
Example: 2023
monthThe month number
Example: 12
dayThe day number
Example: 31

Formula patterns

Examples

1

Build date from dynamic inputs

=DATE(A2, B2, C2)
data cleaningdate construction
2

Calculate first day of next month

=DATE(YEAR(A2), MONTH(A2) + 1, 1)
schedulingproject management
3

Get the last day of the current month

=DATE(YEAR(A2), MONTH(A2) + 1, 0)
reportingaccounting

Avoid these issues

Common Errors

1

#VALUE!

Cause: One or more arguments are non-numeric or refer to cells containing text that Excel cannot convert to a number.

Fix: Ensure that the cells referenced (A2, B2, C2) contain numeric integers and do not contain hidden spaces or text characters.

2

#NUM!

Cause: The resulting date falls outside Excel's supported range (January 1, 1900, to December 31, 9999).

Fix: Verify that the year value is within the 1900-9999 range and that subtraction in the day or month arguments does not result in a date prior to the year 1900.

Platform support

Compatibility

Excel 2007+Excel-first

Source: Microsoft Support

Common questions

Frequently Asked Questions

Creates a valid Excel date from individual numbers.

year: The year number (4 digits recommended) month: The month number day: The day number

#VALUE!: Ensure that the cells referenced (A2, B2, C2) contain numeric integers and do not contain hidden spaces or text characters. #NUM!: Verify that the year value is within the 1900-9999 range and that subtraction in the day or month arguments does not result in a date prior to the year 1900.