We’ve got a small category extending the
NSDate class found in Cocoa with some really convenient methods that allow us to work with date objects without cluttering up our code with
NSComponent objects and operations. If you’ve ever had to do date manipulation or formatting in Java, I can tell you that it’s as much a nuisance in Objective-C, too.
In any event, I finally got around to putting up a proper description of each method, and added a new instance method,
weekday, which gives you the day of the week for an NSDate, 0 – 6 (0 being Sunday).