CFDateFormatter
Declaration
class CFDateFormatterOverview
CFDateFormatter objects format the textual representations of CFDate and CFAbsoluteTime objects, and convert textual representations of dates and times into CFDate and CFAbsoluteTime objects. You can express the representation of dates and times very flexibly, for example “Thu 22 Dec 1994” is just as acceptable as “12/22/94.” You specify how strings are formatted and parsed by setting a format string and other properties of a CFDateFomatter object.
The format of the format string itself is defined by Unicode Technical Standard #35; the version of the standard used varies with release of the operating system, and is described in Introduction to Data Formatting Programming Guide For Cocoa.
Topics
Creating a Date Formatter
Configuring a Date Formatter
Parsing Strings
Creating Strings From Data
CFDateFormatterCreateStringWithAbsoluteTime(_:_:_:)CFDateFormatterCreateStringWithDate(_:_:_:)CFDateFormatterCreateDateFormatFromTemplate(_:_:_:_:)
Getting Information About a Date Formatter
CFDateFormatterCopyProperty(_:_:)CFDateFormatterGetDateStyle(_:)CFDateFormatterGetFormat(_:)CFDateFormatterGetLocale(_:)CFDateFormatterGetTimeStyle(_:)
Getting the CFDateFormatter Type ID
Data Types
Constants
See Also
Related Documentation
- Data Formatting Guide for Core Foundation