The following code:
NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init] autorelease];
dateFormatter.dateFormat = @"yyyy-MM-dd";
NSDate *tempDate = [dF2 dateFromString:@"2011-07-10"];
DebugLog(@"Temp Date %@", tempDate);
Results in the following output:
Temp Date 2011-07-10 05:00:00 +0000
I don't understand where the 05:00:00 is coming from? I am using this code in the Central timezone, which is -5 GMT and that's the only connection I can think of to the time that set for the date. I expected 00:00:00.
Input appreciated.