date(from:)
Creates and returns a date object from the specified ISO 8601 formatted string representation.
Declaration
func date(from string: String) -> Date?Parameters
- string:
The ISO 8601 formatted string representation of a date.
Return Value
A date object, or nil if no valid date was found.