Create a new NSDate object from the date returned by UIDatePicker

advertisements

How to create new NSDate object from [myUIDatePicker date] ?


You don't need to create a new NSDate object, you can just use the one it gives you.

NSDate *chosenDate = myDatePicker.date;