UNPKG

@atlaskit/datetime-picker

Version:

A date time picker allows the user to select an associated date and time.

17 lines (16 loc) 621 B
import type { LocalizationProvider } from '@atlaskit/locale/localization-provider'; /** * There are props that can change how the date is parsed. * The priority of props used is: * 1. `parseInputValue` * 2. `dateFormat` (when `platform-dst-dp-parse-date-format` is on) * 3. `locale` * * `dateFormat` only wins when the input actually parses against it, otherwise * `locale` parsing is used. */ export declare const parseDate: (date: string, di: { parseInputValue: ((date: string, dateFormat: string) => Date) | undefined; dateFormat: string | undefined; l10n: LocalizationProvider; }) => Date;