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

# insightSelectDateDataset()

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/model/queries/insights.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).
> 

Given results of a query of date datasets available to use for filtering an insight, this function will pick a single date dataset to use.

**Signature:**

```typescript
export declare function insightSelectDateDataset(input: IInsightDateDatasets): ICatalogDateDataset | undefined;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| { mostImportantFromInsight, dateDatasetsOrdered, } | (not declared) |  |
| input | [IInsightDateDatasets](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.iinsightdatedatasets/index.md) |  |

**Returns:**

[ICatalogDateDataset](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.icatalogdatedataset/index.md) &#124; undefined
