Return to Snippet

Revision: 29248
at July 24, 2010 04:35 by rabc


Initial Code
NSDate *now = [NSDate date];
int daysToAdd = 50;  // or 60 :-)
NSDate *newDate1 = [now addTimeInterval:60*60*24*daysToAdd];
NSLog(@"Quick: %@", newDate1);

Initial URL
http://www.drobnik.com/touch/2009/05/adding-days-to-nsdate/

Initial Description

                                

Initial Title
Add days to a NSDate

Initial Tags
date, iphone

Initial Language
Objective C