Re: NSDate & NSCalendarDate
Re: NSDate & NSCalendarDate
- Subject: Re: NSDate & NSCalendarDate
- From: "John C. Randolph" <email@hidden>
- Date: Sat, 22 Sep 2001 04:37:58 -0700
On Saturday, September 22, 2001, at 03:22 AM, Tae-Won Ha wrote:
I'm playing with date classes of Cocoa.
How can I get the long date format, which is shown in the System Pref >
Intern. > Date? I tried the %x, however it is not that format I
expected.
I want to have something like this: Tuesday, January 1, 2001, depending
the setting in System Pref.
First, check this URL:
file://localhost/Developer/Documentation/Cocoa/Reference/Foundation/ObjC_classic/
Classes/NSCalendarDate.html
...which should be the same on any machine with the Mac OS X developer
tools installed. You probably want to use -descriptionWithLocale: or
-descriptionWithCalendarFormat:locale:
-jcr
"I fear all we have done is to awaken a sleeping giant and fill him with
a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.