Representing dates as strings, Retrieving date elements – Apple WebObjects 3.5 User Manual
Page 208

Chapter 11
WebScript Programmer’s Quick Reference to Foundation Classes
208
Representing Dates as Strings
– description
Returns a string representation of the NSCalendarDate formatted
according to the NSCalendarDate’s default calendar format.
– descriptionWithCalendarFormat:
Returns a string representation of the receiver formatted according to
the provided format string.
– calendarFormat
Returns a string that indicates the receiver’s default calendar format.
See “Date Conversion Specifiers” (page 206) for more detailed
information on formats used by NSCalendarDate.
– setCalendarFormat:
Set the receiver’s default calendar format to the provided string.
Retrieving Date Elements
– dayOfWeek
Returns a number that indicates the NSCalendarDate’s day of the
week (0–6).
– dayOfMonth
Returns the NSCalendarDate’s day of the month (1–31).
– dayOfYear
Returns a number that indicates the NSCalendarDate’s day of the year
(1–366).
– dayOfCommonEra
Returns the NSCalendarDate’s number of days since the beginning of
the Common Era. The base year of the Common Era is 1 A.C.E.
(which is the same as 1 A.D.).
– monthOfYear
Returns a number that indicates the NSCalendarDate’s month of the
year (1–12).
– yearOfCommonEra
Returns the NSCalendarDate’s year value (including the century).
– hourOfDay
Returns the NSCalendarDate’s hour value (0–23).