Foxcolab
Skip to content

Date functions in Sheets: TODAY, EDATE, NETWORKDAYS

Use date functions in Foxcolab Sheets to add months, find month ends, count days, years and working days, and skip holidays, with worked examples you can copy.

Updated 3 min read

In short

Foxcolab Sheets has the date functions you know from Excel: DATE, TODAY, NOW, EDATE, EOMONTH, DAYS, DATEDIF, NETWORKDAYS, WORKDAY and their .INTL versions, WEEKDAY and more. Dates are numbers underneath, so you can subtract one from another. If a result shows a number such as 46081, select the cell and choose Format, Number, Date.

Key takeaways

  • Dates are serial numbers, so =B6-B4 gives the days between two dates.
  • A formula that returns a date shows a plain number until the cell has a date format. Choose Format → Number → Date.
  • EDATE adds whole months and stops at the last day of a shorter month. EOMONTH gives the last day of a month.
  • DATEDIF counts whole years, months or days, earlier date first.
  • NETWORKDAYS and WORKDAY skip weekends and the holidays you list. The .INTL versions take other weekends, such as Sunday only.
  • TODAY and NOW follow the time zone in File → Settings, and update whenever the spreadsheet recalculates.

Last reviewed 5 December 2026

Date functions in Foxcolab Sheets work the way they do in Excel, so you can add months to a start date, find the end of a month, count the years someone has worked or the working days left in a project. Sheets calculates every formula in your browser, so your dates stay end-to-end encrypted while you work.

The examples use this sheet, with two holidays in D2:D3:

ABCD
1EventDateHolidays
2Joined15 Jan 202425 Dec 2026
3Invoice date31 Jan 20261 Jan 2027
4Project start2 Nov 2026
5Project end13 Nov 2026
6Report date5 Dec 2026

How dates work in Sheets#

Every date is a number of days: 5 Dec 2026 is 46361. That's why you can subtract dates, and why a formula that returns a date can show a plain number. If you see 46081 where you expected 28 Feb 2026, select the cell and choose Format → Number → Date. The date order follows the spreadsheet's locale, as Format numbers, dates and currencies explains.

To put a date inside a formula, use DATE(2026, 12, 5) or the text "2026-12-05". Both mean the same thing in every locale, unlike 5/12/2026.

Build a date or take one apart#

Text
=DATE(2026, 12, 5)    → 5 Dec 2026
=DATE(2026, 14, 1)    → 1 Feb 2027
=DATE(2026, 3, 0)     → 28 Feb 2026
=YEAR(B6)             → 2026
=MONTH(B6)            → 12
=DAY(B6)              → 5
=WEEKDAY(B6)          → 7
=WEEKDAY(B6, 2)       → 6
=ISOWEEKNUM(B6)       → 49

A month above 12 rolls into the next year, and day 0 is the last day of the month before. WEEKDAY counts Sunday as 1 unless you add 2 as the second argument, which makes Monday 1. 5 Dec 2026 is a Saturday.

Today's date#

=TODAY() returns today's date and =NOW() the date and time. Both update whenever the spreadsheet recalculates: when it opens, after any edit, or when you choose Tools → Recalculate now. They use the time zone in File → Settings → Time zone (NOW and TODAY), which applies to everyone who opens the spreadsheet.

Text
=B4 - TODAY()                → days until the project starts (negative once it has)
=DATEDIF(B2, TODAY(), "Y")   → whole years since B2

To stamp a date that never changes, press Ctrl+; (⌘; on a Mac). It types today's date into the cell as a fixed value.

Add months and find month ends#

Text
=EDATE(B3, 1)          → 28 Feb 2026
=EDATE(B3, 12)         → 31 Jan 2027
=EDATE(B3, -2)         → 30 Nov 2025
=EOMONTH(B3, 1)        → 28 Feb 2026
=EOMONTH(B6, 0)        → 31 Dec 2026
=EOMONTH(B6, -1) + 1   → 1 Dec 2026

EDATE keeps the day of the month and falls back to the last day when the target month is shorter, so 31 Jan plus one month is 28 Feb. It suits renewal dates, monthly instalments and the end of a notice period. EOMONTH gives the last day of a month, so "due at the end of next month" is =EOMONTH(B3, 1). Add 1 to last month's end for the first day of this month.

Count the time between two dates#

Text
=B6 - B4                 → 33
=DAYS(B6, B4)            → 33
=DATEDIF(B2, B6, "Y")    → 2
=DATEDIF(B2, B6, "YM")   → 10
=DATEDIF(B2, B6, "MD")   → 20
=DATEDIF(B2, B6, "Y") & " years, " & DATEDIF(B2, B6, "YM") & " months"   → 2 years, 10 months

DAYS takes the later date first. DATEDIF takes the earlier date first and counts whole units:

UnitCounts
"Y" / "M" / "D"Whole years / whole months / days
"YM"Months left after the whole years
"MD"Days left after the whole months
"YD"Days since the last anniversary

Count working days#

Text
=NETWORKDAYS(B4, B5)                        → 10
=NETWORKDAYS(B6, DATE(2026, 12, 31), D2:D3) → 18
=WORKDAY(B6, 10)                            → 18 Dec 2026
=WORKDAY(B6, 15, D2:D3)                     → 28 Dec 2026
=WORKDAY(B6, -5)                            → 30 Nov 2026

NETWORKDAYS counts Monday to Friday, both dates included, minus any holidays in the range you add. WORKDAY returns the date that many working days after the start date, or before it with a negative number. Without the holiday range, 15 working days from 5 Dec lands on 25 Dec.

For other weekends, use NETWORKDAYS.INTL and WORKDAY.INTL. Code 11 means only Sunday is off, 7 means Friday and Saturday, and a seven-character text such as "0000011" marks days off from Monday to Sunday with 1:

Text
=NETWORKDAYS.INTL(B4, B5, 11)       → 11
=WORKDAY.INTL(B6, 10, 11, D2:D3)    → 17 Dec 2026

Fix common problems#

  • #VALUE! means a date couldn't be read, often a day-first date such as 31/01/2026 in a spreadsheet set to English (United States). Use DATE(), or change the locale in File → Settings.
  • #NUM! from DATEDIF means the start date is after the end date.
  • To browse every date function with its arguments, choose Insert → Function.

Frequently asked questions

Why does my date formula show a number like 46081?

Sheets stores dates as serial numbers, and a formula's cell keeps the format it already had. Select the cell and choose Format, then Number, then Date. 46081 is 28 February 2026.

How do I calculate someone's age in Sheets?

Use =DATEDIF(B2, TODAY(), "Y"), with the date of birth in B2. It counts whole years, so the age goes up on the birthday itself.

Can NETWORKDAYS use a six-day working week?

Yes. Use NETWORKDAYS.INTL with weekend code 11, which treats only Sunday as a day off. WORKDAY.INTL takes the same codes.

Why is TODAY a day out?

TODAY uses the spreadsheet's time zone, not your computer's. Check File, Settings, Time zone (NOW and TODAY). The setting applies to everyone who opens the spreadsheet.

Did this answer your question?

One click, no account needed.

Still need help?

Our support team can take it from here.

Jump to