I am using NSDatePickerView controller in our iPhone app. I have a need to set the Date and Time in different position. So, I use NSDatePickerModeDate to pick Date and NSDatePickerModeTime to pick Time.
But both of them are referring to same NSDate object inside a NSMutableDictionary, and I know about the NSDatePickerModeDateTime, but our need is to get the Date & Time spearatedly.
Please help me..!
Tarun Kumar
29-Mar-2016If you want to get separate Date and Time then we need to convert full date to only date format and convert date to only time format. below we are provided both examples:
// Convert to Date Format
// Convert to Time format
I hope above example is helpful for you.