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

# revertExcludedCurrentPeriodRange()

- Package: [@gooddata/sdk-ui-filters](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-filters/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-filters/src/DateFilter/utils/PeriodExclusion.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Inverse of [excludeCurrentPeriodFromRange()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-filters/sdk-ui-filters.excludecurrentperiodfromrange/index.md): the current-period-ending range that would have produced the stored offsets via exclusion, or undefined when the stored range cannot be an exclusion result. Lets stored offsets be matched back to "preset + checked toggle".

**Signature:**

```typescript
revertExcludedCurrentPeriodRange: (range: {
    from: number;
    to: number;
}) => {
    from: number;
    to: number;
} | undefined
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| range | { from: number; to: number; } |  |

**Returns:**

{ from: number; to: number; } &#124; undefined
