<!--
{
  "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/ParseStrategy/fixed(format:timeZone:locale:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation13ParseStrategyPAAE5fixed6format8timeZone6localeAA4DateVABVAI12FormatStringV_AA04TimeG0VAA6LocaleVSgtAJRszrlFZ"
  },
  "title" : "fixed(format:timeZone:locale:)"
}
-->

# fixed(format:timeZone:locale:)

A fixed-format date parse strategy.

```
static func fixed(format: Date.FormatString, timeZone: TimeZone, locale: Locale? = nil) -> Self where Self == Date.ParseStrategy
```

## Parameters

`format`

The string describing the parsing format.

`timeZone`

The [`TimeZone`](/documentation/Foundation/TimeZone) used to create the string representation of the date.

`locale`

The [`Locale`](/documentation/Foundation/Locale) used to create the string representation of the date.

## Return Value

A strategy for parsing a date.

---

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)