Top "Nscalendar" questions

NSCalendar is an Apple MacOS and iOS class to deal with calendrical computation.

format a NSDate to DDMMYYYY?

I have to send a DDMMYYY date from a Date to communicate with an API. NSDateComponents *dateComponents; NSCalendar *gregorian; NSDate *…

ios nsdate nscalendar nsdatecomponents
NSCalendar, why does setting the firstWeekday doesn't effect calculation outcome?

i need to calculate the weekday for a given date, however, depending on the calendar a week can star on …

ios cocoa nsdate nscalendar
Get first day in a month from NSCalendar

I have this subset of a method that needs to get day one of the current month. NSDate *today = [NSDate …

cocoa cocoa-touch calendar nscalendar nsdatecomponents
Rounding of NSdate to nearest hour in iOS

I have data in the format time: 13:52, 10:30, 11:48 etc I would like to round to the nearest hour. like for 13:52 -&…

iphone ios nsdate nscalendar nsdatecomponents