• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSDateFormatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Using NSFontPanel with NSControl subclasses
  • Next by Date: NSWindowController subclass as nib file owner issues
  • Previous by thread: Re: NS_HANDLER mystery
  • Next by thread: NSWindowController subclass as nib file owner issues
  • Index(es):
    • Date
    • Thread