Possible Duplicate:
NSDateComponents of an NSDate
I have set up two UIDatePicker
s in InterfaceBuilder: one of them has it's mode set to "Date", and the other one's mode is set to "Time".
I have successfully taken the date from the "Date" picker in my ViewController, but it comes with a time...
My question is: how can I use both pickers to get a single date?
(for those of you wondering why I'm not using the "Date and Time" mode: this wouldn't make it easy for a user to select a year)
Many thanks,