Add days to a NSDate

/ Published in: Objective C
Save to your folder(s)

Copy this code and paste it in your HTML
  1. NSDate *now = [NSDate date];
  2. int daysToAdd = 50; // or 60 :-)
  3. NSDate *newDate1 = [now addTimeInterval:60*60*24*daysToAdd];
  4. NSLog(@"Quick: %@", newDate1);


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.