Skip to main content
Albero Academy

Date & Time Functions

Understand how Excel stores dates and work with them — building and parsing dates, differences, workdays, and month-end.

Chapter 10Excel13 min readBeginner friendly
  • #Excel
  • #Dates
  • #Functions

Dates confuse everyone until you learn Excel's secret: a date is just a number. Once that clicks, date maths becomes simple arithmetic. This chapter covers building, parsing and calculating with dates — the backbone of any time-based analysis.

How Excel stores dates

Internally, a date is a serial number counting days from 1 January 1900. 1 is that day; 46000 is a date in 2025. The date you see is just a format over that number — which is why you can subtract two dates to get the days between them.

Today & now

the current date/time
=TODAY() today's date (updates each day)
=NOW() current date + time
=TODAY() - A2 days between today and a past date

Building & parsing

construct & break apart
=DATE(2026, 1, 12) build a date from year, month, day
=YEAR(A2) =MONTH(A2) =DAY(A2) pull parts out
=WEEKDAY(A2) day of week (1 = Sunday by default)
=EOMONTH(A2, 0) last day of A2's month
=EDATE(A2, 3) the same day, 3 months later

Differences & workdays

durations
=B2 - A2 days between two dates (just subtract!)
=DATEDIF(A2, B2, "m") whole months between
=NETWORKDAYS(A2, B2) working days (excludes weekends)
=NETWORKDAYS(A2, B2, holidays) …and a holidays range
=WORKDAY(A2, 10) the date 10 working days after A2

Practice

Compute each student's days-since-enrolment with TODAY(). Work out the month-end billing date with EOMONTH, the number of working days in a project with NETWORKDAYS, and extract the enrolment year with YEAR to group by.

Key takeaways

  1. 01An Excel date is a serial number (days since 1900) — the visible date is just a format.
  2. 02TODAY()/NOW() give the current date/time; subtract two dates for days between.
  3. 03Build with DATE(y,m,d); parse with YEAR/MONTH/DAY/WEEKDAY; EOMONTH/EDATE shift months.
  4. 04DATEDIF gives whole units between dates; NETWORKDAYS/WORKDAY handle working days.
  5. 05A date showing as a number is a formatting issue; text dates need DATEVALUE to calculate.