temporal-fns
    Preparing search index...

    Function toDate

    • Converts a Temporal value to a legacy Date.

      Instant and ZonedDateTime are converted by the absolute instant they represent. PlainDate and PlainDateTime are constructed as local-zone Dates using their wall-clock fields.

      Parameters

      • temporal: PlainDate | PlainDateTime | ZonedDateTime | Instant

      Returns Date