Working with NSCalendarDates
NSCalendarDate objects represent dates and times. These objects are especially suited for representing and manipulating dates according to western calendrical systems. NSCalendarDate performs date computations based on western calendrical systems, primarily the Gregorian.The methods provided by NSCalendarDate are described in more detail in the section "Commonly Used NSCalendarDate Methods."
The Calendar Format
Each NSCalendarDate object has a calendar format associated with it. This format is a string that contains date-conversion specifiers that are very similar to those used in the standard C library function strftime(). NSCalendarDate interprets dates that are represented as strings conforming to this format. You can set the default format for an NSCalendarDate object at initialization time or using the setCalendarFormat: method. Several methods allow you to specify formats other than the one bound to the object.
Table of Contents Next Section