Date Calculator

Add or subtract time from a date in any time zone, and count business days.

About Date Calculator

Add or subtract years, months, weeks, days, hours, minutes and seconds from a date and time in any time zone, and count business days between two dates.

How to use

  1. Pick the start date and time, and the time zone it is in. Now fills in the current time.
  2. Choose Add or Subtract and type whole numbers into any of the amount fields. Blank fields count as zero.
  3. Read the result with its weekday, ISO week number, day of year, Unix timestamp, UTC offset and the exact time elapsed. Notes appear when a month end, a leap year or a clock change affected it.
  4. To count working days, pick a start and an end date below, and list any holidays to leave out, one per line.

What it does

  • Month arithmetic: years and months are applied first. If the day does not exist in the month reached, the last day of that month is used, so 31 January plus one month is 28 February, or 29 February in a leap year, and 29 February 2024 plus one year is 28 February 2025. Weeks and days are added after that.
  • Clock changes: years, months, weeks and days keep the clock time, while hours, minutes and seconds are exact elapsed time. In Europe/London, 12:00 on 30 March 2024 plus 1 day is 12:00 on 31 March, only 23 hours later, but plus 24 hours is 13:00.
  • A start time that does not exist because the clocks go forward is refused with an explanation. A time that happens twice because the clocks go back uses the first occurrence, and the page says so. If adding days lands in a skipped hour, the result moves on by the length of the gap.
  • ISO week follows ISO 8601: weeks start on Monday and week 1 is the one with the year's first Thursday, so 3 January 2021 is in week 53 of 2020. The Unix timestamp is whole seconds since 1970-01-01 00:00 UTC.
  • Business days count Monday to Friday with both dates included, as a spreadsheet's NETWORKDAYS does. A holiday on a weekend or listed twice is only left out once.
  • It does not know any country's public holidays (list the ones you need), treat Friday and Saturday as the weekend, or accept fractions such as 1.5 days. For the plain number of days, weeks or months between two dates, use Days Between Dates.

Example

Start:         2024-01-31 09:00, Europe/London
Add:           1 month
Result:        Thursday 29 February 2024, 09:00:00
ISO week:      2024-W09
Day of year:   60
Unix:          1709197200

Business days: 2025-12-22 to 2025-12-31
Holidays:      2025-12-25, 2025-12-26
Result:        6 business days

Privacy

All of the date arithmetic runs in the browser with the Luxon library and the browser's own time zone data. Nothing is sent anywhere and nothing is stored.

Frequently asked questions

What is 31 January plus one month?
February has no 31st, so the result is the last day of February: 28 February, or 29 February in a leap year. Adding one month to 28 February then gives 28 March, so month arithmetic cannot always be reversed exactly.
How do I calculate business days between two dates excluding holidays?
Pick the two dates under "Business days between two dates" and list the holidays as YYYY-MM-DD, one per line. Monday to Friday are counted with both dates included, and each listed holiday that falls on a weekday is taken off once.
Is adding 1 day the same as adding 24 hours?
Not on the day the clocks change. Adding 1 day keeps the clock time, so across the spring change it is only 23 hours later, and across the autumn change 25 hours. Adding 24 hours is always exactly 24 hours of elapsed time.
What week number is a date in?
The result shows the ISO 8601 week, written like 2020-W53. ISO weeks start on Monday and the first week of a year contains its first Thursday, so the first days of January can belong to the last week of the year before.