I am trying to do this in Xcode...
Today's Date = Day of the year
October 13th = 303 (I think) January 1st = 1 December 31st = 365
NSDate to get todays date, then I'm out of idea =(
I am trying to do this in Xcode...
Today's Date = Day of the year
October 13th = 303 (I think) January 1st = 1 December 31st = 365
NSDate to get todays date, then I'm out of idea =(
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"D"];
NSDate *date = [NSDate date];
NSLog(@"Today: %@", date);
NSLog(@"Date Formatted: %@", [dateFormatter stringFromDate:date]);
[dateFormatter release];