> ## Documentation Index
> Fetch the complete documentation index at: https://learn.workflow.dog/llms.txt
> Use this file to discover all available pages before exploring further.

# Relative Date

> Add a duration to a starting date and time.

## Inputs

| Input             | Type        | Required | Description                                                 |
| ----------------- | ----------- | -------- | ----------------------------------------------------------- |
| **Amount**        | Number      | Yes      | Amount to add. Use a negative value to subtract.            |
| **Unit**          | String      | Yes      | Minutes, hours, days, weeks, or months. Defaults to hours.  |
| **Starting Date** | Date & Time | No       | Reference instant. Intended to default to the current time. |

## Output

| Output   | Type        | Description                   |
| -------- | ----------- | ----------------------------- |
| **Date** | Date & Time | The calculated date and time. |

For example, an amount of `-2` and a unit of `days` returns two calendar days
before the starting date.

<Note>
  Days, weeks, and months use calendar arithmetic. Month lengths vary, and
  daylight-saving changes can make a calendar day differ from exactly 24 elapsed
  hours.
</Note>

<Warning>
  The current server initializes the blank **Starting Date** default when the
  Date & Time package loads, rather than for each action run. Connect **Current
  Date & Time** explicitly when the calculation must start at execution time.
</Warning>
