Subtract Time from Date Calculator
Subtract years, months, weeks, days, hours, minutes and seconds from a start date and time, then see the resulting past date-time.
Subtract Time from Date Calculator
Total offset
How it was calculated
Subtract time from a date and time
Use this page when you know a date-time and need to move backward by a mixed duration, such as 2 days and 6 hours before a deadline.
Delta T can include years, months, weeks, days, hours, minutes and seconds. Calendar units are applied before clock units.
Calendar and clock behavior
- Calendar units keep real month lengths and leap years.
- Clock units borrow across days, months and years as needed.
- The calculation is local to the browser time zone and does not model a separate event time zone.
Frequently Asked Questions
Sources and References
- DateMDN Web Docs
- Representing dates and timesMDN Web Docs
- Gregorian calendarBritannica
- SI Units: TimeNIST
- Date Calculatortimeanddate.com
Calculations are based on the listed reference sources. Links open in a new tab.
Related Tools
Add years, months, weeks, days, hours, minutes and seconds to a start date and time, then see the resulting date-time and total offset.
Add or subtract calendar days from a start date, then see the resulting date, weekday, ISO week, day of year and month calendar.
Calculate the number of days between two dates, with exclusive or inclusive counting, weeks, calendar years/months/days and weekday/weekend totals.