Because dates are serial numbers, Excel does date maths naturally. Its date functions get today's date, extract parts, and compute durations.
Date functions
=TODAY() =NOW() current date / date-time=YEAR(A2) =MONTH(A2) =DAY(A2) extract parts=WEEKDAY(A2) =EOMONTH(A2, 0) day-of-week / end of month=A2 - A1 days between two dates (subtract!)=DATEDIF(A1, A2, "Y") whole years between dates=EDATE(A2, 3) 3 months after A2
Key takeaways
- 01Dates are serial numbers, so subtracting two dates gives days between.
- 02TODAY()/NOW() give the current date/time; YEAR/MONTH/DAY extract parts.
- 03DATEDIF computes durations (years/months/days) between dates.
- 04A date showing as a number just needs a Date format applied.
