Re: NSDateFormatter strangeness

2008-11-18 Thread Greg Hoover
Wow! That totally fixed it. Thank you. Wow do I feel dumb! Greg On Nov 18, 2008, at 9:28 AM, Simon Wolf wrote: On 18 Nov 2008, at 17:06, Greg Hoover wrote: Ok, I buy that, but then what's the problem here: NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [forma

Re: NSDateFormatter strangeness

2008-11-18 Thread Simon Wolf
On 18 Nov 2008, at 17:06, Greg Hoover wrote: Ok, I buy that, but then what's the problem here: NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat: @"dd/MM/"]; NSString *str = @"3/10/2008"; NSLog(@"[EMAIL PROTECTED]@\r%@", str, [fo

Re: NSDateFormatter strangeness

2008-11-18 Thread Greg Hoover
Ok, I buy that, but then what's the problem here: NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat: @"dd/MM/"]; NSString *str = @"3/10/2008"; NSLog(@"[EMAIL PROTECTED]@\r%@", str, [formatter dateFromString: str], [formatter stri

Re: NSDateFormatter strangeness

2008-11-18 Thread Kyle Sluder
On Mon, Nov 17, 2008 at 8:23 PM, Greg Hoover <[EMAIL PROTECTED]> wrote: > I am using NSDateFormatter. The code snippet included shows this. No, you're not. Your third argument to NSLog is an NSDate object. NSLog will call -description on it to get a textual representation. --Kyle Sluder ___

Re: NSDateFormatter strangeness

2008-11-18 Thread Nathan Kinsinger
On Nov 17, 2008, at 6:23 PM, Greg Hoover wrote: I am using NSDateFormatter. The code snippet included shows this. Greg On Nov 17, 2008, at 3:38 PM, Kyle Sluder wrote: I think it's a known issue. The documentation for -[NSDate descriptionWithCalendarFormat:timeZone:locale:] (which I can only

Re: NSDateFormatter strangeness

2008-11-17 Thread Greg Hoover
I am using NSDateFormatter. The code snippet included shows this. Greg On Nov 17, 2008, at 3:38 PM, Kyle Sluder wrote: I think it's a known issue. The documentation for -[NSDate descriptionWithCalendarFormat:timeZone:locale:] (which I can only assume that -[NSDate description] calls) has this

Re: NSDateFormatter strangeness

2008-11-17 Thread Kyle Sluder
I think it's a known issue. The documentation for -[NSDate descriptionWithCalendarFormat:timeZone:locale:] (which I can only assume that -[NSDate description] calls) has this caveat: "There are several problems with the implementation of this method that cannot be fixed for compatibility reasons.