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

# IDateFiltersCustomizer

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: interface
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/plugins/customizer.ts

Set of functions you can use to customize how date filters are rendered.

**Signature:**

```typescript
export interface IDateFiltersCustomizer 
```

## Methods

| Method | Description |
| --- | --- |
| [withCustomProvider(provider)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idatefilterscustomizer/index.md#idatefilterscustomizerwithcustomprovider) | Register a provider for React components to render date filters. |

## Method details

### IDateFiltersCustomizer.withCustomProvider()

Register a provider for React components to render date filters.

**Signature:**

```typescript
withCustomProvider(provider: OptionalDateFilterComponentProvider): IDateFiltersCustomizer;
```

#### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| provider | [OptionalDateFilterComponentProvider](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.optionaldatefiltercomponentprovider/index.md) | provider to register |

**Returns:**

[IDateFiltersCustomizer](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.idatefilterscustomizer/index.md)

self, for call chaining sakes

#### Remarks

A provider takes the date filter as input and is expected to return a React component that should be used to render that filter.

If the provider returns `undefined` then:

- if there are other providers registered, they will be called to see if they can provide  a component to render the date filter - if there are no other providers registered, the default, built-in component will be used.

You may register multiple providers. They will be evaluated in the order you register them.
