Date functions: DATE, DATEDIF and EOMONTH
A spreadsheet stores a date as a number that counts days: March 15, 2026 is 46096. That's why you can subtract one date from another and get the days between them.
This topic builds dates with DATE, counts days and whole years between them with DAYS and DATEDIF, finds month ends and due dates with EOMONTH and EDATE, counts workdays with NETWORKDAYS, and shows dates as text with TEXT.
Lessons in this topic
- 1Dates are numbers: DATE, YEAR, MONTH and DAYPlusAbout 5 minutes
See why a date is a number in Excel and Google Sheets, build one with DATE, take it apart with YEAR, MONTH and DAY, and add days to it.
- 2Today's date with TODAY and NOWPlusAbout 5 minutes
Use TODAY and NOW in Excel and Google Sheets for a date that updates by itself: days until a due date, and which invoices are overdue.
- 3Days and years between dates: DAYS and DATEDIFPlusAbout 6 minutes
Count the days between two dates with DAYS, and whole years or months with DATEDIF, for delivery times, length of service and age.
- 4Month ends and due dates: EOMONTH and EDATEPlusAbout 5 minutes
Find the last day of a month with EOMONTH and the same day months later with EDATE, for invoice due dates, renewals and warranties.
- 5Count workdays with NETWORKDAYS and WEEKDAYPlusAbout 6 minutes
Count the workdays in a project with NETWORKDAYS, leave out holidays, and use WEEKDAY to spot deliveries booked on a weekend.
- 6Write dates as text with TEXTPlusAbout 5 minutes
Use TEXT in Excel and Google Sheets to show a date as a weekday, a month label or a full date inside a sentence, instead of a bare number.
- 7Practice: datesPlusAbout 6 minutes
Mixed date practice on a new-hire list: probation ends, years of service, first payday and workdays so far. Pick the right date function for each.