date(a) - days(b)


Subtracts b days from the given date a. If b is negative the number of days are added.

Description of Parameters

Parameter

Description

a

Date.

b

Days to subtract.

Examples

Parameter a

Parameter b

Result

2005-01-01

1

2004-12-31

2005-01-01

-1

2005-01-02