NSDateFormatterを使用して日付の形式を変更すると、与えられたものの1日前の日付が返されます。コードは次のとおりです。
NSString *strDate = [self.mArrEventDate objectAtIndex:i];
NSString *str = [[NSString alloc] init];
str = [strDate stringByReplacingOccurrencesOfString:@"/" withString:@"-"];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
// ...using a date format corresponding to your date
[dateFormatter setDateFormat:@"dd/MM/yyyy"];
// Parse the string representation of the date
NSDate *date = [dateFormatter dateFromString:strDate];
NSDateFormatter *format1 = [[NSDateFormatter alloc]init];
[format1 setTimeZone:[NSTimeZone timeZoneForSecondsFromGMT:0]];
[format1 setDateFormat:@"yyyy-MM-dd"];
NSString *sDate = [format1 stringFromDate:date];