How to subtract time from a date

Find an earlier date by removing a duration from a known starting point.

What it means

Find an earlier date by removing a duration from a known starting point.

How to calculate or use it

Represent the starting point and duration consistently, then subtract using calendar-aware date functions.

Important details

State the time zone and distinguish elapsed hours from calendar days around daylight-saving changes.

Related before guides