I can get current date of iphone via this code as
NSDate *currentDate = [NSDate date];
NSDateFormatter *dateFormatter1 = [[NSDateFormatter alloc] init];
[dateFormatter1 setDateFormat:@"yyyy-MM-dd HH:mm"];
NSString *dateString = [dateFormatter1 stringFromDate:currentDate];
Now I just want to increase one mint then save NSString format, how can I?
Or even shorter:
Objective-C
Swift
You can use dateByAddingTimeInterval.