+ (NSString *)yesterdayDate
{
NSDate *yesterday = [NSDate dateWithTimeIntervalSinceNow:-(24*60*60)];
NSDateFormatter *formatter = [[NSDateFormatter alloc] init ];
[formatter setDateFormat:@"yyyy-MM-dd"];
NSString *yesterdayTime = [formatter stringFromDate:yesterday];
return yesterdayTime;
}