NSDate to month, year etc.
NSDate to month, year etc.
- Subject: NSDate to month, year etc.
- From: Trygve Inda <email@hidden>
- Date: Sun, 03 Aug 2008 08:28:33 +0000
- Thread-topic: NSDate to month, year etc.
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden