---
schema_version: "1"
id: 507b3a489e442e1c52f42ea5ff62442d73298e04d238b880d03544575cfff2bf
title: "Handlebars Helper Function: dateAdd"
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/handlebars/reference/date-time/mcn-handlebars-reference-date-time-dateadd.md
canonical_url: https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-date-time-references/mcn-handlebars-reference-date-time-dateadd.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: d69f2937e5b8c136becafab1d13abf230f012270072daa81b0101b33bc3ab2bf
products:
  - Handlebars for Marketing Cloud Next
  - Marketing Cloud
---
# Handlebars Helper Function: dateAdd

Adds or subtracts a specific amount of time to a date. Use this helper to perform date arithmetic such as adding days to a date, subtracting months, or adjusting hours and minutes.

## Availability

This helper is available in the Summer ’26 release of Marketing Cloud Next.

## Syntax

```handlebars
{{dateAdd date number interval}}
```

## Parameters

| Parameter  | Type              | Description                                                                                                                                                           |
| ---------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `date`     | String or Object  | Required. The starting date.                                                                                                                                          |
| `number`   | Integer or String | Required. The amount of time to add. Use a negative value to subtract time from `date`. If you specify a string, the helper function tries to convert it to a number. |
| `interval` | String            | Required. The time unit to add or subtract. Possible values: `"Y"` (year), `"M"` (month), `"D"` (day), `"H"` (hour), `"MI"` (minute), `"S"` (second).                 |

You can specify `date` in these formats:

- **US formats**: `MM/dd/yyyy`, `M/d/yyyy`, `MM/dd/yyyy HH:mm:ss`, `M/d/yyyy h:mm a`, or `M/d/yyyy h:mm:ss a`
- **ISO formats**: `yyyy-MM-dd`, `yyyy-MM-dd HH:mm:ss`, `yyyy-MM-dd'T'HH:mm:ss`, or `yyyy-MM-dd'T'HH:mm:ss.SSSZ`
- **12-hour time**: `M/d/yyyy h:mm a`, `yyyy-MM-dd h:mm a`, or `yyyy-MM-dd h:mm:ss a`
- **Time-only**: `h:mm a` or `h:mm:ss a`

  **note:** If you specify only a time, the helper function uses the current date.

- **Long-form English**: `d MMMM yyyy`, `MMMM d, yyyy`, or `EEEE, MMMM d, yyyy`
- **Chinese and Japanese notation**: `yyyy年M月d日`
- **Korean notation**: `yyyy년 M월 d일` or `yyyy년M월d일`

## Return Value

The function returns a date-time string in the format `yyyy-MM-dd HH:mm:ss`.

If the value of the `date` parameter is February 29th during a leap year, the helper uses February 28th to perform calculations. For example, `{{dateAdd "2024-02-29" 1 "Y"}}` returns `2025-02-28 00:00:00`.

## See Also

- [DateDiff](/handlebars/reference/date-time/mcn-handlebars-reference-date-time-datediff.md)
- [Now](/handlebars/reference/date-time/mcn-handlebars-reference-date-time-now.md)
- [TimezoneConversion](/handlebars/reference/date-time/mcn-handlebars-reference-date-time-timezoneconversion.md)
