# toPlainDateTime (@salmonui/calendars/calendar)

> The toPlainDateTime function of @salmonui/calendars/calendar: Normalizes a DateTimeInput; a date-only input is midnight.

Canonical: https://salmonui.dev/docs/reference/calendars/calendar/toPlainDateTime

```ts
import { toPlainDateTime } from '@salmonui/calendars/calendar';
```

Also exported from `@salmonui/calendars/date-picker`, `@salmonui/calendars/date-range-picker`, `@salmonui/calendars/time-picker`.

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

## Reference

Kind: function

```ts
function toPlainDateTime(input: unknown, timeZone?: string): PlainDateTime | null;
```

Normalizes a `DateTimeInput`; a date-only input is midnight.
