O3 Framework / parseDateInput
parseDateInput(
dateInput,referenceDate):Dayjs|null
Defined in: packages/framework/esm-utils/src/dates/date-util.ts:481
Parses a date input into a dayjs object. ISO calendar dates are parsed independently of locale; other strings use any-date-parser with corrections for its month/day representation differences with dayjs. Non-string inputs are passed directly to dayjs.
ConfigType
The date to parse.
Dayjs
Used as the base when resolving partial string dates (e.g., ‘2000’ resolves missing fields from this date).
Dayjs | null
A dayjs object, or null if the string could not be parsed.