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

# Date Generation

> Generate a single date or a list of dates

The Date Generation command (Command Type: 1300) generates a single date or a list of dates in a specified format and UTC offset.

## Command Type

**Command Type ID:** 1300

## Parameters

| Parameter                   | Type                     | Description                                                                          | Required |
| --------------------------- | ------------------------ | ------------------------------------------------------------------------------------ | -------- |
| **format**                  | string                   | Date format string (e.g. `"yyyy-MM-dd"`) or `"unix"` for Unix timestamp              | Yes      |
| **key**                     | string                   | Where to store results. Possible values: `"data"`, `"children"`, `"local_variables"` | Yes      |
| **utcOffset**               | string                   | UTC offset (e.g. `"+03:00"` for Israel time)                                         | Yes      |
| **dateOffset**              | DateOffsetConfiguration  | Shift the date by a fixed amount (e.g. -1 month)                                     | No       |
| **listConfig**              | DateListGenerationConfig | Generate a list of dates based on a starting point                                   | No       |
| **output\_parameter\_name** | string                   | Output parameter name for local variables                                            | No       |

### DateOffsetConfiguration

| Field     | Type   | Description                                                                   | Required |
| --------- | ------ | ----------------------------------------------------------------------------- | -------- |
| **unit**  | string | Time unit: `"minutes"`, `"hours"`, `"days"`, `"weeks"`, `"months"`, `"years"` | Yes      |
| **value** | number | Amount to shift (positive or negative)                                        | Yes      |

### DateListGenerationConfig

| Field               | Type   | Description                                                                   | Required |
| ------------------- | ------ | ----------------------------------------------------------------------------- | -------- |
| **numberOfItems**   | number | How many dates to generate                                                    | Yes      |
| **incrementUnit**   | string | Time unit: `"minutes"`, `"hours"`, `"days"`, `"weeks"`, `"months"`, `"years"` | Yes      |
| **incrementAmount** | number | How much to increment between each date (can be negative)                     | Yes      |

## Usage Examples

### Generate Today's Date

```json theme={null}
{
  "command": "date-generation",
  "params": {
    "format": "yyyy-MM-dd",
    "key": "data",
    "utcOffset": "+00:00"
  }
}
```

### Generate Yesterday

```json theme={null}
{
  "command": "date-generation",
  "params": {
    "format": "yyyy-MM-dd",
    "key": "data",
    "utcOffset": "+03:00",
    "dateOffset": { "unit": "days", "value": -1 }
  }
}
```

### Generate a List of 7 Daily Dates

```json theme={null}
{
  "command": "date-generation",
  "params": {
    "format": "yyyy-MM-dd",
    "key": "children",
    "utcOffset": "+00:00",
    "listConfig": {
      "numberOfItems": 7,
      "incrementUnit": "days",
      "incrementAmount": 1
    }
  }
}
```

## Related Commands

* [Date Range Generation](/stream/commands/generate/date-range-generation) - Generate date ranges
* [Numeric Sequence Generation](/stream/commands/generate/numeric-sequence-generation) - Generate number sequences
