SheetsLessons
Date & Time function

DAY function in Google Sheets

DAY returns the day of the month of a date, from 1 to 31. Combined with EOMONTH it also tells you how many days a month has.

Syntax

=DAY(date)
date
The date to read.

Practice DAY

Task 1 of 1

How many days are in the month of the first date? Answer in B2.

B2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

DAY examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABCD
1TaskStartDueHolidays
2Kickoff1/5/20261/9/20261/19/2026
3Design1/12/20262/13/20262/16/2026
4Build2/16/20264/30/20265/25/2026
5Launch5/4/20265/29/2026
Project schedule (column D lists public holidays)
FormulaResultWhat it shows
=DAY(C2)9Kickoff is due on the 9th.
=DAY(EOMONTH(B3, 0))31Days in the month of the Design start (January has 31).
=DAY(DATE(2028, 3, 0))29Days in February 2028, a leap year.
=IF(DAY(B2)<=15, "First half", "Second half")First halfWhich half of the month a date falls in.

Tips and common mistakes

  • For the day of the week (Monday, Tuesday…), use WEEKDAY or TEXT(date, "dddd") instead.
  • DAY returns a plain number. Don't format the cell as a date.

Related functions