Syntax
=DAY(serial_number)Arguments
| Argument | Required | Description |
|---|---|---|
serial_number | Required | The date |
How to use DAY
DAY takes 1 required argument. Type =DAY( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=DAY(DATE(2024, 3, 15))Result =DAY(60)Result Related date and time functions
- DATEBuilds a date from a year, a month and a day; months and days past the end roll over.
- DATEDIFCounts the whole days, months or years between two dates.
- DATEVALUEConverts a date written as text into a date serial number.
- DAYSReturns the number of days between two dates.
- DAYS360Returns the days between two dates on a calendar of twelve 30 day months.
- EDATEReturns the date a number of months before or after a date, on the same day of the month where possible.
- EOMONTHReturns the last day of the month a number of months before or after a date.
- HOURReturns the hour (0 to 23) of a time.
- ISOWEEKNUMReturns the ISO week number of the year (weeks start on Monday, week 1 contains the first Thursday).