DateComponents.HTTPFormatStyle
Converts DateComponents into RFC 9110-compatible “HTTP date” String, and parses in the reverse direction. This parser does not do validation on the individual values of the components. An optional date can be created from the result using Calendar(identifier: .gregorian).date(from: ...). When formatting, missing or invalid fields are filled with default values: Sun, 01, Jan, 2000, 00:00:00, GMT. Note that missing fields may result in an invalid date or time. Other values in the DateComponents are ignored.
Declaration
struct HTTPFormatStyle