Skip to main content
Albero Academy

Date & Time Functions

Work with dates — TODAY, DATEDIF, and extracting parts.

Formulas & Functions7 min

Because dates are serial numbers, Excel does date maths naturally. Its date functions get today's date, extract parts, and compute durations.

Date functions

working with dates
=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

  1. 01Dates are serial numbers, so subtracting two dates gives days between.
  2. 02TODAY()/NOW() give the current date/time; YEAR/MONTH/DAY extract parts.
  3. 03DATEDIF computes durations (years/months/days) between dates.
  4. 04A date showing as a number just needs a Date format applied.

Finished this chapter?

Mark it complete to track your progress through Excel.