Added some handy methods to NSDate category

This is a cleaned-up version of pull request #172