NSDateFormatter
NSDateFormatter
- Subject: NSDateFormatter
- From: Frank Fenn <email@hidden>
- Date: Fri, 29 Jul 2005 20:15:47 -0600
Hi all,
I experience a strange behavior which I can not explain:
In IB I have 2 text fields with a date formatter attached, set to %b %
d, %Y allowing natural language
in my program I simply NSLog both values after I enter a date, in the
first text field for example: 01/01/2005
in the second text field 01/05/2005
The NSLog I create with:
NSLog(@"Date 1: %@",[date1 objectValue]);
NSLog(@"Date 2: %@",[date2 objectValue]);
looks like this:
Date 1: 2005-01-01 12:00:00 -0700
Date 2: Wednesday, January 5, 2005
No matter which date format I pick in IB, both NSLog outputs are
always in a different format.
Could someone please explain this?
Sincerely,
Frank Fenn
--
Bright Light Software - http://www.brightlightsoftware.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden