Returns a date object representing a given string.
- iOS 2.0+
- macOS 10.3+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The allocator to use to allocate memory for the new object. Pass
NULLor kCFAllocatorDefault to use the current default allocator.
The date formatter object to use to parse
The string that contains the date.
A reference to the range within the string specifying the substring to be parsed. If
NULL, the whole string is parsed. Upon return, contains the range that defines the extent of the parse (may be less than the given range).
A new date that represents
NULL if there was a problem creating the object. Ownership follows the The Create Rule.