Re: NSDate to month, year etc.

2008-08-03 Thread Trygve Inda
> > On Aug 3, 2008, at 1:28 AM, Trygve Inda wrote: > >> Important: NSCalendarDate is slated for deprecation, and its use is >> strongly >> discouraged. >> So what should I be using to get the month, year etc as ints out of an >> NSDate? >> > Seriously? > > "Important: Use of NSCalendarDate stro

Re: NSDate to month, year etc.

2008-08-03 Thread mmalc crawford
On Aug 3, 2008, at 1:28 AM, Trygve Inda wrote: Important: NSCalendarDate is slated for deprecation, and its use is strongly discouraged. So what should I be using to get the month, year etc as ints out of an NSDate? Seriously? "Important: Use of NSCalendarDate strongly discouraged. It is n

NSDate to month, year etc.

2008-08-03 Thread Trygve Inda
I am using: [[myNSDate dateWithCalendarFormat:nil timeZone:nil] monthOfYear]; But the docs say: Important: NSCalendarDate is slated for deprecation, and its use is strongly discouraged. So what should I be using to get the month, year etc as ints out of an NSDate? Thanks, Trygve __