The wrong birthday comes up when I use NSLog to write it out.
Here is the code:
[code] NSDateComponents *myBday = [[NSDateComponents alloc] init];
NSCalendar *g = [[NSCalendar alloc]initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; NSDate *dateofBirth = [g dateFromComponents:myBday]; NSLog(@"My birthday is %@.", dateofBirth);[/code]
Output comes out to: [quote]My birthday is 1980-01-31 17:00:00 +0000.[/quote]
The bday is set for Feb 1, NSLog ouputs Jan 31. Something with the time zone?