Google Sheets DAY function

Returns a date’s day of the month, from 1 to 31. In Spanish Sheets it is called DIA.

Syntax

English Sheets

=DAY(date)

Spanish Sheets (Mexico locale)

=DIA(fecha)

Spanish Sheets (Spain, Latin America)

=DIA(fecha)

ArgumentWhat it is
dateThe date.

Example

When a date arrives as text ("15/03/2026"), Sheets cannot subtract or sort it. Rescue it with DATE: the year is the last 4 characters, the month the middle ones and the day the first 2.

=DAY(B2)

Common mistake

If the date is text it returns #VALUE!; convert it first with DATE or VALUE.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice DAY

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

Dates imported as text

When a date arrives as text ("15/03/2026"), Sheets cannot subtract or sort it. Rescue it with DATE: the year is the last 4 characters, the month the middle ones and the day the first 2.

Example=DATE(RIGHT(A2,4),MID(A2,4,2),LEFT(A2,2))FECHA = DATEDIA = DAY
Step 1/2

In B2, turn the text (day/month/year) into a real date.

B2
ABCD
1Imported text (day/month)DateDay
215/03/2026
301/12/2025
428/02/2026
509/07/2026
631/10/2026
7

Tip: while typing, click a cell or drag across several to insert their reference.

Frequently asked questions

What is DAY called in Spanish?
In Spanish Google Sheets it is DIA. The formula =DAY(B2) is written =DIA(B2) (or with commas under a Mexico locale).
Why does DAY use semicolons in some spreadsheets?
It depends on each spreadsheet's locale, under File > Settings. Where the comma is the decimal mark (Spain, much of South America), arguments are separated by semicolons. Mexico and United States locales use commas.
What is the most common DAY mistake?
If the date is text it returns #VALUE!; convert it first with DATE or VALUE.