# toPlainDate (@salmonui/core/dates)

> The toPlainDate function of @salmonui/core/dates: Normalizes a DateInput (an invalid input is null; never throws).

Canonical: https://salmonui.dev/docs/reference/core/dates/toPlainDate

```ts
import { toPlainDate } from '@salmonui/core/dates';
```

Entry index: https://salmonui.dev/docs/reference/core/dates (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/core/dates.md).

## Reference

Kind: function

```ts
function toPlainDate(input: unknown, timeZone?: string): PlainDate | null;
```

Normalizes a `DateInput` (an invalid input is null; never throws).
