I want add days to a date, I got many codes for this but none of them are working for me below shown is my code,please somebody help me to fix this issue
int
NSDateComponents *offsetComponents = [[NSDateComponents alloc] autorelease]; [offsetComponents setDay:1]; newDate = [[[CalendarContainer sharedCalendarContainer] gregorian] dateByAddingComponents:offsetComponents toDate:currentlyDisplayedDate options:0];