+(NSDate*)dateWithString:(NSString*)dateString andFomatter:(NSString*)fomatter
{
NSDateFormatter * dateF = [[NSDateFormatter alloc] init];
dateF.dateFormat = fomatter;
NSDate *date = [dateF dateFromString:dateString];
return date;
}
网友评论