How can I create an NSDate from the day, month and year? There don’t seem to be any methods to do this and they have removed the class method dateWithString (why would they do that?!).
How can I create an NSDate from the day, month and year? There don’t
Share
You could write a category for this. I did that, this is how the code looks:
Use it like this:
NSDate *aDate = [NSDate dateWithYear:2010 month:5 day:12];