Date & time Between dates

Days ago calculator

From
Days
Unit
The date
Day of the week
ISO format
Local · days and months are not interchangeable
Advertisement
320 × 100

Counts backwards from a date. Enter a negative number of days to go back, or a positive one to go forward. The same arithmetic either way.

How to use the days ago calculator

1 Leave the date on today, or set it to whatever you are counting back from.
2 Enter a negative number to go back and a positive one to go forward.
3 Pick the unit. Days and weeks are exact; months and years count anniversaries and clamp at month ends.
4 Check the weekday beside the result; it catches a sign error faster than re-reading the date does.

Counting back a fixed number of days is unambiguous in a way that counting back months is not: thirty days before 31 March is 1 March, and one month before 31 March is 28 February, and those are different dates for a good reason. If a deadline is defined in days, count days; if it is defined in months, count calendar months and accept that the end-of-month cases clamp. The distinction shows up in contracts constantly, and the phrases "within 30 days" and "within one month" are genuinely different obligations. The weekday is the fastest check that you have the sign and the number right, and it moves predictably: going back seven or fourteen days leaves the weekday alone, back thirty moves it two days earlier, and back ninety moves it one day later, because ninety is thirteen weeks less a day. Nothing here is affected by a clock change, incidentally. The arithmetic works in whole calendar dates, so a "day" is a date rather than 86,400 seconds and daylight saving never enters into it.

Questions

Enter a negative thirty and it counts back, including across month and year boundaries. It also lands two weekdays earlier. Thirty days before a Wednesday is a Monday.

NIST, time and date
Advertisement
300 × 250
Was this tool any good?
Internal signal only · I use it to find the tools worth rebuilding