I’ve been trying and searching for over two days now.
The only thing I’m trying is to convert a week number “Week 50” to the start date of the week.
I’ve tried to convert with dateFromString like this:
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"w"];
NSDate *date = [dateFormat dateFromString:dateStr];
NSLog(@"date(%@)", date);
NSDateFormatter *formatting = [[NSDateFormatter alloc] init];
[formatting setDateFormat:@"YYYY/MM/dd"];
NSString *stringDate = [formatting stringFromDate:date];
NSLog(@"date: %@", stringDate);
[dateFormat release];
But both objects return (null) so it isn’t of many help.
Regards
Have you tried the following: