NOTE: the latest version is 2.0.0
Represents a Date with an optional time.
import Date import DateOrDateTime import Time justADate : DateOrDateTime.DateOrDateTime justADate = DateOrDateTime.Date (Date.fromRataDie 738433) aDateWithATime : DateOrDateTime.DateOrDateTime aDateWithATime = DateOrDateTime.DateTime (Time.millisToPosix 1664987219000) justADate |> dateOrDateTimeToIso8601String --> "2022-10-05" aDateWithATime |> dateOrDateTimeToIso8601String --> "2022-10-05T16:26:59.000Z"
A helper for converting to ISO-8601 formatted Strings Date or DateTime Strings.
Represents a Date with an optional time.