interface CreateDateOptions

Options controlling how a date is parsed and interpreted.

Properties

optional
timezone: string

Timezone identifier (e.g., "Asia/Kolkata"). Requires Dayjs timezone plugin.

optional
utc: boolean

Forces UTC parsing. Takes priority over timezone.

optional
strict: boolean

Enables strict parsing mode. When true, input must exactly match the format.

optional
throwOnInvalid: boolean

If true, throws an error when the parsed date is invalid.

Usage

import { type CreateDateOptions } from ".";