Excel Date Functions: TODAY, NOW, DATEDIF, and EDATE

Excel date functions handle every date in a spreadsheet — start dates, due dates, birthdays, and reporting periods. Every project has a start and end date. Every invoice has a due date. Every employee has a date of joining and a birthday. Every report has a reporting period.

Excel has a whole family of date functions to handle these things. In this article, I will cover the ones that matter most in day-to-day work: TODAY, NOW, DATEDIF, EDATE, EOMONTH, and a few others that pair well with them.

Understanding how Excel stores dates is the first step. Dates are just numbers. January 1, 2024 is stored as 45292. January 2, 2024 is 45293. That means you can add, subtract, and calculate with dates as if they were numbers — because they are.

Excel Date Functions

TODAY() — The Current Date

TODAY returns the current date. The syntax is:

=TODAY()

No arguments. It just returns today’s date. It updates automatically when the file is opened or recalculated.

TODAY is useful for:

  • Dynamic reports showing “as of” date
  • Age calculations
  • Days-until-deadline counters
  • Conditional formatting based on today’s date

Example: Days Until a Deadline

You have a deadline in A2. The days remaining:

=A2 - TODAY()

The result is a number of days. Positive means future, negative means past.

Example: Highlight Overdue Items

A conditional formatting rule that highlights rows where due date is in the past:

=A2 < TODAY()

This rule automatically updates the highlighting as time passes. No manual work needed.

Note: TODAY does not include time. If you need the current date and time, use NOW.

NOW() — The Current Date and Time

NOW returns the current date and time. The syntax is:

=NOW()

It behaves like TODAY but includes the time portion. Excel stores it as a decimal, where the integer part is the date and the fractional part is the time. For example, 45292.5 is noon on January 1, 2024.

NOW is useful for:

  • Time-stamped logs
  • “Last updated” timestamps
  • Calculations involving hours or minutes

Note that NOW updates every time the file is opened or recalculated, so it is not a stable timestamp. For a fixed log timestamp, use Ctrl + ; (semicolon) to insert a fixed date, or Ctrl + Shift + ; for a fixed time.

DATEDIF() — The Age and Duration Calculator

DATEDIF is one of Excel’s most useful and least documented functions. It calculates the difference between two dates in years, months, or days.

The syntax is:

=DATEDIF(start_date, end_date, unit)

The unit argument tells DATEDIF what to return:

  • “Y” — full years
  • “M” — full months
  • “D” — days
  • “YM” — months after subtracting full years
  • “MD” — days after subtracting full months
  • “YD” — days after subtracting full years

Example: Calculate Age

You have a birthdate in A2. The age is:

=DATEDIF(A2, TODAY(), "Y")

This returns the person’s age in completed years. It is the standard formula for age calculation in Excel.

Example: Calculate Tenure

You have a joining date in A2. The years of service:

=DATEDIF(A2, TODAY(), "Y")

The exact tenure in years and months:

=DATEDIF(A2, TODAY(), "Y") & " years, " & DATEDIF(A2, TODAY(), "YM") & " months"

This is a common formula in HR reports. It gives something like “5 years, 3 months” — much more readable than a raw number of days.

Example: Days Between Two Dates

=DATEDIF(A2, B2, "D")

This returns the number of days between two dates. It is equivalent to B2 – A2, but works as long as both are valid dates.

A warning about DATEDIF: Excel does not show it in the function list. It is undocumented but supported in every version. You have to type it manually or write it exactly. If you type DATEDIF and press Tab, Excel may not autocomplete it. Do not worry — it works.

EDATE() — Add or Subtract Months

EDATE returns a date shifted by a number of months. The syntax is:

=EDATE(start_date, months)

Example:

=EDATE(TODAY(), 3)

This returns the date 3 months from today. If today is January 15, it returns April 15. If the resulting day does not exist in the target month (for example, 31st of a 30-day month), EDATE clamps to the last valid day.

EDATE is useful for:

  • Payment due dates (Net 30, Net 60)
  • Subscription renewals
  • Contract end dates
  • Any recurring monthly event

Example: Payment Due Date

Invoice date in A2, payment terms in B2 (in months). The due date:

=EDATE(A2, B2)

If the invoice date is January 15 and terms are 2 months, the due date is March 15.

EOMONTH() — End of Month Calculations

EOMONTH returns the last day of a month, a specified number of months before or after a given date. The syntax is:

=EOMONTH(start_date, months)

Example:

=EOMONTH(TODAY(), 0)

This returns the last day of the current month. If months is 1, it returns the last day of next month. If -1, the last day of last month.

EOMONTH is useful for:

  • Monthly reporting (every month ends on the last day)
  • Payment schedules based on month-end
  • Calculating periods for month-based analysis
  • Any “30 days from end of month” type calculation

Example: Reporting Period

To get the first day of the current month:

=EOMONTH(TODAY(), -1) + 1

To get the last day of the current month:

=EOMONTH(TODAY(), 0)

These two formulas are the building blocks for monthly reports that always reference the current month.

Other Useful Excel Date Functions

DATE(year, month, day) — Build a date from parts. =DATE(2026, 3, 15) returns March 15, 2026.

DAY, MONTH, YEAR — Extract the day, month, or year from a date. =YEAR(A2) returns 2026 if A2 contains a 2026 date.

WEEKDAY(date, [return_type]) — Returns the day of the week as a number. With return_type 2, Monday is 1, Sunday is 7. Useful for excluding weekends from calculations.

WORKDAY(start, days, [holidays]) — Returns a date that is a number of workdays after start, skipping weekends and holidays. Very useful for SLA and deadline calculations.

NETWORKDAYS(start, end, [holidays]) — Counts the number of working days between two dates. Used for project duration and vacation calculations.

A Practical Example: Project Timeline

Start date: 2026-03-01

Duration: 45 working days

Holidays: 2026-03-25 (Holi), 2026-04-14 (Ambedkar Jayanti)

Expected end date:

=WORKDAY(A2, 45, Holidays!A2:A10)

Days worked so far (from start until today):

=NETWORKDAYS(A2, TODAY(), Holidays!A2:A10)

This is how real project schedules are tracked in Excel without any project management software.

A Practical Example: Age at Next Birthday

Employee birthdate in A2. Age at next birthday:

=DATEDIF(A2, TODAY(), "Y") + IF(DATE(YEAR(TODAY()), MONTH(A2), DAY(A2)) < TODAY(), 1, 0)

The DATEDIF part gives the current age. The IF part checks whether the birthday has already passed this year. If not, it adds 1 to give the age on the upcoming birthday.

This is the kind of formula that makes HR and personnel reports run smoothly.

Try This on a Sample File

Build an employee list and practise date arithmetic on real values. In A1 type Name, in B1 type Start Date, in C1 type Tenure, in D1 type Probation Ends. Add three rows: Aarav with 15/03/2022, Meera with 02/07/2023, Rohan with 28/11/2024. In C2 enter =DATEDIF(B2, TODAY(), “Y”) and copy it down to see each person’s tenure in whole years. Change “Y” to “YM” in a copy to see the leftover months.

In D2 enter =EDATE(B2, 6) to get the date six months after joining, then in E2 enter =EOMONTH(B2, 0) to find the last day of the joining month. Now try the trap on purpose: enter a date as text by typing an apostrophe before it, like ’10/01/2025, and watch DATEDIF return #VALUE!. Convert it with Data, Text to Columns, and run the formula again. Finally, in a blank cell enter =NETWORKDAYS(TODAY(), EDATE(TODAY(), 1)) to count working days in the next month, and =WORKDAY(TODAY(), 10) to find the date ten working days from now. Compare both results with a plain =TODAY()+10 and note how weekends change the answer.

Keep this file, because you will reuse the same employee list when you practise EOMONTH reports and NETWORKDAYS deadlines later.

Frequently Asked Questions

Why does DATEDIF not show in the function list?

DATEDIF is an undocumented function kept for compatibility with older spreadsheet software. It works perfectly, but Excel does not advertise it. Just type it manually.

Can I calculate age in years, months, and days?

Yes. Combine three DATEDIF formulas:

=DATEDIF(A2, TODAY(), "Y") & "y " & DATEDIF(A2, TODAY(), "YM") & "m " & DATEDIF(A2, TODAY(), "MD") & "d"

What is the difference between EDATE and EOMONTH?

EDATE shifts a date by a number of months. EOMONTH returns the last day of the month, shifted by a number of months.

Can I use TODAY in a filter?

Yes, filter by date and use “Today” as the criteria, or use conditional formatting with =A2<TODAY() to highlight past-due dates.

How do I convert a text date into a real date?

Use Data > Text to Columns, choose Delimited, and set the column to Date format in step 3. Or use =DATEVALUE(A2) if the text is in a standard format.

Related guide: COUNTIF vs COUNTIFS: The Complete Guide

Related guide: Excel Text Functions: LEFT, RIGHT, MID, and CONCATENATE

Final Thoughts

Date functions are not glamorous, but they are everywhere. Age calculations, due dates, project timelines, monthly reports — all of them live or die by whether you use the right function. TODAY and NOW give you the current moment. DATEDIF gives you the difference in years, months, or days. EDATE and EOMONTH handle month-based math cleanly. WORKDAY and NETWORKDAYS handle working-day logic. Learn these six, and you will handle almost every date problem Excel can throw at you.

Leave a Comment