---
title: "fixed(format:timeZone:locale:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/parsestrategy/fixed(format:timezone:locale:)"
---

# fixed(format:timeZone:locale:)

A fixed-format date parse strategy.

## Declaration

```swift
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 doc://com.apple.foundation/documentation/Foundation/TimeZone used to create the string representation of the date.
- `locale`: The doc://com.apple.foundation/documentation/Foundation/Locale used to create the string representation of the date.

## Return Value

Return Value A strategy for parsing a date.

## See Also

### Commonly-used parsers

- [url](foundation/parsestrategy/url.md)
- [name](foundation/parsestrategy/name.md)
