date(a) - days(b)
This function subtracts b days from the given date a. If b is negative the number of days are added.
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 |