--- title: "date(a) + (b,c,[d])" slug: "date-add-2" updated: 2026-08-13T07:55:00Z published: 2026-08-13T07:55:00Z canonical: "docs.lobstersoftware.com/date-add-2" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # date(a) + (b,c,[d]) This function adds a duration **b** of unit **c** to a *Date* or *Timestamp* **a**. If **b** is negative, the duration will be subtracted from the *Date*. Subtracting working days is currently not possible, trying to do so will lead to an error. Units are to be given as Integer, digits will be cut off. An addition of e.g. 2.5 hours should be given as 150 minutes. If working days are added, parameter **d** specifies the locale to be used for the decision what days are weekends. ## Parameters | Parameter | Description | | --- | --- | | a | Date to add. | | b | Value to add. | | c | Time unit. | | d | (optional) Locale to be used. Default: *de*. **NOTE:** Use the three dots to select a value. | ### Unit Values for Parameter c | Value | Time unit | | --- | --- | | *milli* or *S* | Milliseconds. | | *sec* or *s* | Seconds. | | *min* or *m* | Minutes. | | *hour* or *H* | Hours. | | *day* or *d* | Days. | | *month* or *M* | Months. | | *year* or *y* | Years. | | *workday* or *w* | Working days. | ## Examples | Parameter a | Parameter b | Parameter c | Parameter d | Result | | --- | --- | --- | --- | --- | | 2010-03-01 00:00:00 | 2 | h | | 2010-03-01 02:00:00 | | 2010-03-01 00:00:00 | -2 | h | | 2010-02-28 22:00:00 | | 2010-03-01 00:00:00 | 5 | w | | 2010-03-08 00:00:00 |