Re: NSDateFormatter
Re: NSDateFormatter
- Subject: Re: NSDateFormatter
- From: "Sean McBride" <email@hidden>
- Date: Mon, 1 Aug 2005 13:58:21 -0400
- Organization: Rogue Research
On 2005-07-29 20:15, Frank Fenn said:
>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.
I don't understand... NSLog goes to the console, not a text field. Are
you expecting NSLog to use the textfield's date formatter? It won't.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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