twoDigitStartDate
TypeScriptget twoDigitStartDate(): globalThis.DateSwift declarationvar twoDigitStartDate: DateThe earliest date that can be denoted by a two-digit year specifier.
struct · iOS 15.0+ · SDK 27.1
struct ParseStrategyOptions for parsing string representations of dates to create a `Date` instance.
get twoDigitStartDate(): globalThis.DateSwift declarationvar twoDigitStartDate: DateThe earliest date that can be denoted by a two-digit year specifier.
set twoDigitStartDate(value: globalThis.Date)Swift declarationvar twoDigitStartDate: DateThe earliest date that can be denoted by a two-digit year specifier.
parse(value: string): globalThis.DateSwift declarationfunc parse(_ value: String) throws -> DateReturns a `Date` of a given string interpreted using the current settings. - Parameter value: A string representation of a date. - Throws: Throws `NSFormattingError` if the string cannot be parsed. - Returns: A `Date` represented by `value`.
static init(format: Date_FormatString, locale: (Locale) | null, timeZone: TimeZone, calendar?: Calendar, isLenient?: boolean, twoDigitStartDate?: globalThis.Date): Date_ParseStrategySwift declarationinit(format: Date.FormatString, locale: Locale? = nil, timeZone: TimeZone, calendar: Calendar = Calendar(identifier: .gregorian), isLenient: Bool = true, twoDigitStartDate: Date = Date(timeIntervalSince1970: 0))Creates a new `ParseStrategy` with the given configurations. - Parameters: - format: A fixed format representing the pattern of the date string. - locale: The locale of the fixed format. - timeZone: The time zone to use for creating the date. - isLenient: Whether to use heuristics when parsing the representation. - twoDigitStartDate: The earliest date that can be denoted by a two-digit year specifier.
get format(): stringSwift declarationvar format: String { get }The string representation of the fixed format conforming to Unicode Technical Standard #35.
get locale(): (Locale) | nullSwift declarationvar locale: Locale?The locale to use when parsing date strings with the specified format. Use system locale if unspecified.
set locale(value: (Locale) | null)Swift declarationvar locale: Locale?The locale to use when parsing date strings with the specified format. Use system locale if unspecified.
get calendar(): CalendarSwift declarationvar calendar: CalendarThe calendar to use when parsing date strings and creating the date.
set calendar(value: Calendar)Swift declarationvar calendar: CalendarThe calendar to use when parsing date strings and creating the date.
get timeZone(): TimeZoneSwift declarationvar timeZone: TimeZoneThe time zone to use for creating the date.
set timeZone(value: TimeZone)Swift declarationvar timeZone: TimeZoneThe time zone to use for creating the date.
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)?Processes the input string within the specified bounds, beginning at the given index, and returns the end position of the match and the produced output. Don't call this method directly. Regular expression matching and capture calls it automatically when matching substrings. - Parameters: - input: An input string to match against. - index: The index within `input` at which to begin searching. - bounds: The bounds within `input` in which to search. - Returns: The upper bound where the match terminates and a matched instance, or `nil` if there isn't a match.
get isLenient(): booleanSwift declarationvar isLenient: BoolIndicates whether to use heuristics when parsing the representation.
set isLenient(value: boolean)Swift declarationvar isLenient: BoolIndicates whether to use heuristics when parsing the representation.
No declarations were skipped in this snapshot.