Going Stellar

Home/Google Sheets reference

Google Sheets function · Date

DAY in Google Sheets: syntax and examples

DAY extracts the day of the month from a date as a number between 1 and 31. It accepts real dates, serial numbers and text dates that Sheets can parse.

Syntax

DAY(date)

Arguments

ArgumentTypeRequiredWhat it does
datedateyesA date value, a serial number or a text date that Sheets can parse. Only the day of the month is returned.

Examples

The examples use this table, starting in A1:

SerialSerial with time
4609646097.99
00.5
=DAY(A2)

Result: 15

A date serial number. 46096 is 15 March 2026, so the result is 15.

Run in a Google Sheet (English US locale) on .

=DAY(DATE(2026, 2, 28) + 1)

Result: 1

One day after 28 February 2026 is 1 March, so DAY gives 1.

Run in a Google Sheet (English US locale) on .

=DAY("2026-03-15")

Result: 15

A text date in yyyy-mm-dd form is read the same way in both locales.

Run in a Google Sheet (English US locale) on .

=DAY(EOMONTH(DATE(2026, 2, 1), 0))

Result: 28

The day number of the last day of February: how many days the month has.

Run in a Google Sheet (English US locale) on .

=DAY(B2)

Result: 16

The time part after the decimal point is ignored: 46097.99 is still the 16th.

Run in a Google Sheet (English US locale) on .

Common errors

  • A serial number of 0 is 30 December 1899, so DAY(0) is 30. A blank cell passed to DAY gives the same 30, not an error.
  • Text dates depend on the locale. "15.03.2026" is a valid date in ro_RO but gives #VALUE! in en_US. Use the yyyy-mm-dd form to be safe.
  • Text that is not a date returns #VALUE!.

Compared with Excel

Same syntax in Excel. For ordinary dates both return the same day.

Sources

  1. DAY (Docs Editors Help)

Markdown version · All functions