Language: English

tools / date

date/

Days and workdays between dates, date arithmetic, and age / star sign / Chinese zodiac. Uses your local date.

Workdays count Monday to Friday only; public holidays are not excluded

Days between dates

Add / subtract

Use a negative number to go back. When adding months or years, if the target month has no such day, the last day of that month is used: 1-31 + 1 month = 2-28 (2-29 in leap years).

Age calculator

People born on 2-29 celebrate on 2-28 in common years. The Chinese zodiac follows the lunar year, which starts at Chinese New Year (the first day of the first lunar month).

What is date calculation

Date calculation counts days on the Gregorian calendar, with dates written as YYYY-MM-DD per ISO 8601. This page works out the days and the Monday-to-Friday workdays between two dates, adds or subtracts days, weeks, months or years, and finds age in full years, star sign and Chinese zodiac from a birth date.

How it works: day numbers, month-end fallback and workdays

Each date is first turned into a day number, the count of days from 1970-01-01, with a day taken as 86400000 milliseconds as in JavaScript’s Date. The difference in days is one day number minus the other; only year, month and day matter, so time zones and daylight saving have no effect.

Example

2024 is a leap year: adding 1 month to January 31 lands in a February with no 31st, so the result falls back to February 29. For a whole year, 2026-01-01 to 2026-12-31 counting both ends is 365 days, of which 261 are workdays.

Input
2024-01-31
Output
2024-02-29

Sources

FAQ

Should the start and end dates both count when working out the days between two dates?

By default the end date is not counted: Jan 1 to Jan 2 is 1 day. Tick "Include start and end dates (+1 day)" and it becomes 2 days; workdays then include the end date too, and the days part of "Y / M / D" goes up by one. Tick it when you mean "how many days in total" (an event running from the 1st to the 3rd lasts 3 days), and leave it off when you mean "how many days apart".

Does the workday count exclude public holidays?

No. For an exact figure, subtract the holidays that fall on a Monday to Friday in your range and add any weekend days you have to work. Also note that the end date is not counted by default: Monday to Friday of the same week shows 4 workdays, and it becomes 5 only when you tick "Include start and end dates".

The Y / M / D result differs from my own count. Why?

It mostly happens when the start date is the 29th, 30th or 31st. The tool first counts whole months forward from the start date, then counts the remaining days. Months follow the same rule as "Add / subtract": if the target month has no such day, it uses the last day of that month. For example, 2026-01-31 to 2026-03-01 shows 1 month 1 day: Jan 31 plus 1 month is Feb 28, and one more day reaches Mar 1.

Why doesn't adding a month and then subtracting a month bring me back to Jan 31?

Each calculation starts fresh from the date you enter and doesn't remember the previous step. 2026-01-31 plus 1 month is 2026-02-28; use that result as the start and subtract 1 month and you get 2026-01-28. To go backwards, start from the original date and enter a negative number. The amount must be a whole number with an absolute value of at most 1,000,000.

Is the age in completed years or East Asian age? What about a Feb 29 birthday?

Completed years: you only gain a year on your birthday, and East Asian age reckoning (where a baby is already 1 at birth) is not calculated. "As of" defaults to today; change it to find the age on any past or future date. For a Feb 29 birthday, non-leap years count Feb 28 as the birthday, so the person turns a year older on Feb 28 in those years.

Why does my star sign or Chinese zodiac differ from other sites?

It usually means the birthday falls near a boundary date. Star signs use fixed month-and-day boundaries (for example Aries starts on March 21 and Capricorn on December 22), regardless of birth year or time of day. The Sun's actual entry into a sign shifts by about a day from year to year, and sources differ slightly on the boundary dates. The Chinese zodiac follows the lunar year, which starts at Chinese New Year (the first day of the first lunar month), so anyone born in January or February before that day has the previous year's animal; sites that simply use the Gregorian year will be a year off for those dates.

Are my dates uploaded or saved? Which time zone is "today"?

No, nothing is uploaded or saved. Everything is calculated in your browser without network requests, and the dates go back to their defaults when you refresh. "Today" is the local date in your device's current time zone.