date_subtract

Subtracts a duration or date fields from a date.

Target function

Signature

1date_subtract(value, ...)

Subtracts a duration or date fields from a date.

date_subtract is a global callable that can be used wherever an expression is valid. date_subtract handles calendar, duration, or formatting behavior. Store values in structured date or duration form and format them only when presenting text.

Parameters

value
Required value. Supply value positionally unless the signature shows a keyword form.
...
Additional values may be supplied after the earlier arguments.

Examples

Basic call

1date_subtract(date, -day=1)
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.