O3 Framework / parseDateInput
parseDateInput(
dateInput,referenceDate):null|Dayjs
Defined in: packages/framework/esm-utils/src/dates/date-util.ts:455
Parses a date input into a dayjs object. String inputs are interpreted using 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).
null | Dayjs
A dayjs object, or null if the string could not be parsed.