---
title: "parse(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/date/parsestrategy/parse(_:)"
---

# parse(_:)

Returns a Date of a given string interpreted using the current settings.

## Declaration

```swift
func parse(_ value: String) throws -> Date
```

## Parameters

- `value`: A string representation of a date.

## Return Value

Return Value A Date represented by value.

## Discussion

Discussion note: Throws NSFormattingError if the string cannot be parsed.
