String
struct String
-
Extends
String
to provide a function for parsing the receiver as an RFC 1123 date.Declaration
Swift
public func asDateRFC1123() -> Date?
Return Value
A
Date
parsed from the receiver, ornil
if the receiver did not contain a date string in the expected format. -
Extends
String
to provide a function for parsing the receiver as an ISO 8601 date.Declaration
Swift
public func asDateISO8601() -> Date?
Return Value
A
Date
parsed from the receiver, ornil
if the receiver did not contain a date string in the expected format.