How can I get the current number of days in the current month using NSDate or something similar in Cocoa touch?
Swift syntax:
let date = NSDate() let cal = NSCalendar(calendarIdentifier:NSCalendarIdentifierGregorian)! let days = cal.rangeOfUnit(.CalendarUnitDay, inUnit: .CalendarUnitMonth, forDate: date)