How to Get date from week number and year
问题 I want to get date from week number and year . i got week number and year from server . I am trying following code but it wont work. NSDateFormatter *dateFormatter2 = [[NSDateFormatter alloc] init]; // this is imporant - we set our input date format to match our input string // if format doesn't match you'll get nil from your string, so be careful [dateFormatter2 setDateFormat:@"yyyy-MM-dd"]; NSDate *now = [dateFormatter2 dateFromString:@"2001-01-01"]; NSCalendar *gregorian1 = [[NSCalendar