Excel Date & Time Functions
Every Excel date and time function you'll actually use — grouped by what they do, with complete reference guides for each. Whether you need today's date, business-day math, or a fiscal-year age calculation, start here.
What's in this hub
Current date & time
Return the moment right now — great for stamps, dashboards, and "days since" calculations.
Constructing dates
Build a date from separate year, month, and day inputs — essential for imports where dates arrive as text or split columns.
DATE
Builds a date from year, month, day. Handles overflow — DATE(2026,13,1) becomes Jan 1, 2027.
Extracting parts of a date
Pull the year, month, day, or weekday out of a date. Also useful for grouping in PivotTables.
YEAR, MONTH, DAY
Return the year, month, or day-of-month portion of a date. Basic but essential.
WEEKDAY
Returns the day of the week as a number (1-7). Multiple counting systems (Sun-based, Mon-based).
Date math
Move dates forward or backward by days, months, or years. Compute differences between dates.
DATEDIF
Difference between two dates in years, months, or days. Legacy function — undocumented but works.
Business days & workdays
Skip weekends and holidays automatically. Essential for finance, project management, and SLA calculations.
NETWORKDAYS
Counts working days between two dates. Optional holidays list. NETWORKDAYS.INTL for custom weekends.
How dates work in Excel
Dates are just numbers
Excel stores dates as serial numbers. Day 1 is January 1, 1900. Today (Sep 6, 2026) is serial number 46,271. That's why you can do math on dates: =A1+30 adds 30 days.
Times are decimal fractions
Times are stored as fractions of a day. 12:00 PM = 0.5. 6:00 AM = 0.25. A full date-time like "Sep 6, 2026 6:00 AM" is stored as 46271.25.
The format vs. value distinction
Changing a date cell's number format doesn't change its underlying value — only how Excel displays it. =A1+1 still adds one day even if A1 looks like "Sep 6".
The 1900 leap year bug
Excel treats 1900 as a leap year (it wasn't). This is preserved for compatibility with old Lotus 1-2-3 files. Only matters for dates in Jan and Feb 1900 — irrelevant for almost everyone.
The Y2K text problem
Dates imported from external systems often arrive as text ("2026-09-06" as a string). Convert with =DATEVALUE(A1) or =--A1. Once numeric, Excel treats it as a real date.
Not sure if a cell contains a real date or text that looks like one? Select it and check the alignment. Excel right-aligns numbers (including dates) by default. Left-aligned dates are usually text.
Which function should I use?
Match the task to the function:
| You want to... | Use this function |
|---|---|
| Insert today's date | TODAY() |
| Insert today's date and time | NOW() |
| Build a date from year/month/day columns | DATE() |
| Get the year from a date | YEAR() |
| Get the month number | MONTH() |
| Get day-of-week (1-7) | WEEKDAY() |
| Calculate age in complete years | DATEDIF() with "Y" |
| Add 6 months to a date | EDATE() |
| Get last day of the month | EOMONTH() |
| Count business days between dates | NETWORKDAYS() |
| Ship date if starting today with 10 work days | WORKDAY() |
Skip the date-function memorization
Date math in Excel is tricky — different functions for months vs. days, different weekday counting systems, and a legacy function (DATEDIF) that isn't even in the docs. Excel Wizard handles it: describe what you want ("age in years from birthday in column B") and it writes the correct formula.
Install Excel Wizard →