Date

extension Date: HADecodeTransformable
  • Converts from ISO 8601 (with or without milliseconds) String to Date

    Declaration

    Swift

    public static func decode(unknown value: Any) -> `Self`?

    Parameters

    value

    A string value to convert

    Return Value

    The value converted to a Date, or nil if not possible