<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Date/ParseStrategy/init(format:locale:timeZone:calendar:isLenient:twoDigitStartDate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation4DateV13ParseStrategyV6format6locale8timeZone8calendar9isLenient013twoDigitStartB0AeC12FormatStringV_AA6LocaleVSgAA04TimeH0VAA8CalendarVSbACtcfc"
  },
  "title" : "init(format:locale:timeZone:calendar:isLenient:twoDigitStartDate:)"
}
-->

# init(format:locale:timeZone:calendar:isLenient:twoDigitStartDate:)

Creates a new `ParseStrategy` with the given configurations.

```
init(format: Date.FormatString, locale: Locale? = nil, timeZone: TimeZone, calendar: Calendar = Calendar(identifier: .gregorian), isLenient: Bool = true, twoDigitStartDate: Date = Date(timeIntervalSince1970: 0))
```

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)