Returns a date representation of a given string interpreted using the receiver’s current settings.
SDKs
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Returns a date representation of a given string interpreted using the receiver’s current settings.
SDKs
Framework
- string From Date:
Returns a string representation of a given date formatted using the receiver’s current settings.
+ localized String From Date: date Style: time Style:
Returns a string representation of a given date, formatted for the current locale using the specified date and time styles.
- get Object Value: for String: range: error:
Returns by reference a date representation of a given string and the range of the string used, and returns a Boolean value that indicates whether the string could be parsed.