PDA

View Full Version : Cocoa NSDate - extracting values


jerrybrace
2005.04.16, 08:58 PM
Newbie question here. I'm trying to find the best way to get the following from the current date ([NSDate Date])
Month - int value
year - int value
day - int value
hour - int value
minute - int value
and AM/PM as string.

Thanks!

OneSadCookie
2005.04.16, 09:24 PM
use NSCalendarDate instead.