Wednesday, April 20, 2011

UIDatePicker and NSDate

I have an NSDate that I get from a UIDatepicker.

IBOutlet UIDatePicker *dueDate;

NSDate *selectedDate = [dueDate date];

how do I retrieve the month from dueDate in the form of an int? (1 for Jan, 2 for Feb, etc)

From stackoverflow

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.