---
title: "string(from:timeZone:formatOptions:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/iso8601dateformatter/string(from:timezone:formatoptions:)"
---

# string(from:timeZone:formatOptions:)

Creates a representation of the specified date with a given time zone and format options.

## Declaration

```swift
class func string(from date: Date, timeZone: TimeZone, formatOptions: ISO8601DateFormatter.Options = []) -> String
```

## Parameters

- `date`: The date to be represented.
- `timeZone`: The time zone used.
- `formatOptions`: The options used. For possible values, see doc://com.apple.foundation/documentation/Foundation/ISO8601DateFormatter/Options.

## Return Value

Return Value A user-readable string representing the date.

## Discussion

Discussion This method uses a date formatter configured with the specified time zone and format options. The following code examples produce the same string value:

## See Also

### Converting ISO 8601 Dates

- [string(from:)](foundation/iso8601dateformatter/string(from:).md)
- [date(from:)](foundation/iso8601dateformatter/date(from:).md)
