API reference: @salmonui/calendars/calendar
toDatefunction
import { toDate } from '@salmonui/calendars/calendar';Also exported from @salmonui/calendars/date-picker, @salmonui/calendars/date-range-picker, @salmonui/calendars/time-picker.
function toDate(value: PlainDateLike & Partial<PlainTimeLike>, timeZone?: string): Date;
The Date (instant) of a plain date or date-time: its wall time in
timeZone (DST resolved like Temporal 'compatible'), else in the host
zone. An invalid value or zone gives an invalid Date.