๐ Date & Time Functions in Excel Real-World Business Examples
Dates are used in almost every business report. Whether you're tracking employee attendance, calculating customer age, measuring project timelines, or analyzing monthly sales, Excel's date and time functions are essential.
๐ง 1. How Excel Stores Dates
Excel stores dates as serial numbers.
For example:
Date Serial Number
01-Jan-1900 1
15-Jun-2026 Stored as a serial number internally
๐ This allows Excel to perform calculations like adding days or finding the difference between dates.
๐ 2. TODAY() Function
TODAY() returns the current date.
Syntax:
=TODAY()Example: If today's date is 26-Jun-2026: Result 26-Jun-2026
Use Cases: โ Attendance sheets, โ Invoice dates, โ Daily reports
โฐ 3. NOW() Function
Returns the current date and time.
Syntax:
=NOW()Example: 26-Jun-2026 10:30 AM
Use Cases: Report generation timestamps, Activity logs, Audit tracking
๐ Unlike TODAY(), NOW() includes the time.
๐๏ธ 4. DATE() Function
Creates a valid date from year, month, and day values.
Syntax:
=DATE(year,month,day)Example:
=DATE(2026,6,15) Result 15-Jun-2026Use Cases: Creating dynamic dates, Financial models, Scheduling reports
๐ 5. YEAR() MONTH() & DAY()
These functions extract parts of a date.
YEAR()
=YEAR(A2) Result 2026MONTH()
=MONTH(A2) Result 6DAY()
=DAY(A2) Result 15 Business Example: If Order Date = 15-Jun-2026 โ You can extract Year โ 2026, Month โ 6, Day โ 15.
This is useful for monthly and yearly reporting.
โณ 6. Calculate Days Between Two Dates
Example: Start Date End Date โ 01-Jun-2026 15-Jun-2026
Formula:
=B2-A2 Result 14 ๐ Excel automatically returns the number of days.
๐ 7. DATEDIF() Function
Calculates the difference between two dates.
Syntax:
=DATEDIF(start_date,end_date,unit) Calculate Years:
=DATEDIF(A2,B2,"Y") Calculate Months:
=DATEDIF(A2,B2,"M") Calculate Days:
=DATEDIF(A2,B2,"D") Real Example: Employee Joining Date 01-Jan-2020, Today's Date 26-Jun-2026
Formula:
=DATEDIF(A2,TODAY(),"Y") Result 6 Years ๐ Commonly used to calculate Employee experience, Customer age, Membership duration
๐ข 8. NETWORKDAYS()
Calculates working days between two dates. Weekends are automatically excluded.
Syntax:
=NETWORKDAYS(start_date,end_date) Example:
=NETWORKDAYS(A2,B2) Include Holidays:
=NETWORKDAYS(A2,B2,D2:D10) where D2:D10 contains holiday dates Use Cases: โ Project planning, โ SLA tracking, โ Payroll calculations
๐ 9. EDATE()
Adds or subtracts months from a date.
Syntax:
=EDATE(start_date,months) Example:
=EDATE(A2,3) Returns a date 3 months after the date in A2 ๐ Useful for Loan schedules, Subscription renewals, Contract expiry dates
๐ 10. EOMONTH()
Returns the last day of a month.
Syntax:
=EOMONTH(start_date,months) Example:
=EOMONTH(A2,0) If A2 = 15-Jun-2026 Result 30-Jun-2026 Use Cases: Month-end reports, Financial closing, Billing cycles