parseStrategy
TypeScriptget parseStrategy(): Date_HTTPFormatStyleSwift declarationvar parseStrategy: Date.HTTPFormatStyle { get }A `ParseStrategy` that can be used to parse this `FormatStyle`'s output
struct · iOS 26.0+ · SDK 27.1
struct HTTPFormatStyleOptions for generating and parsing string representations of dates following the HTTP date format from [RFC 9110 § 5.6.7](https://www.rfc-editor.org/rfc/rfc9110.html#http.date).
get parseStrategy(): Date_HTTPFormatStyleSwift declarationvar parseStrategy: Date.HTTPFormatStyle { get }A `ParseStrategy` that can be used to parse this `FormatStyle`'s output
parse(value: string): globalThis.DateSwift declarationfunc parse(_ value: String) throws -> DateParses a value, using this strategy. This method throws an error if the parse strategy can't parse `value`. - Parameter value: A value whose type matches the strategy's ``ParseStrategy/ParseInput`` type. - Returns: A parsed value of the type declared by ``ParseStrategy/ParseOutput``.
format(date: globalThis.Date): stringSwift declarationfunc format(_ date: Date) -> StringFormats a value, using this style. Use this method when you want to create a single style instance, and then use it to format multiple values. - Parameter value: The value to format. - Returns: A representation of `value`, in the ``FormatOutput`` type, formatted according to the style's configuration.
consuming(input: string, index: SDKHandle, bounds: SDKHandle): ({ "upperBound": SDKHandle; "output": globalThis.Date }) | nullSwift declarationfunc consuming(_ input: String, startingAt index: String.Index, in bounds: Range<String.Index>) throws -> (upperBound: String.Index, output: Date)?Process the input string within the specified bounds, beginning at the given index, and return the end position (upper bound) of the match and the produced output. - Parameters: - input: The string in which the match is performed. - index: An index of `input` at which to begin matching. - bounds: The bounds in `input` in which the match is performed. - Returns: The upper bound where the match terminates and a matched instance, or `nil` if there isn't a match.
static init(): Date_HTTPFormatStyleSwift declarationinit()No declarations were skipped in this snapshot.