> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# DatePeriodRange

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: type-alias
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.71/libs/sdk-model/src/base/dateGranularities.ts

A range of periods of a [DatePeriodGranularity](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.dateperiodgranularity/index.md) with at least one edge set.

**Signature:**

```typescript
export type DatePeriodRange = {
    from: DatePeriodLiteral;
    to?: DatePeriodLiteral;
} | {
    from?: DatePeriodLiteral;
    to: DatePeriodLiteral;
};
```
**References:** [DatePeriodLiteral](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.dateperiodliteral/index.md)

## Remarks

'from' is the first and 'to' the last period of the range, both included. A missing edge leaves the range open on that side.
