The issue I have is that the Date Picker shows a certain date and time. however, in the console log, the selected time tends to differ:
I suspect the DatePicker is working fine.
The time shown in the log is in UTC time ("+0000"). Looks like you’re in UTC+6 (Bangladesh, Bhutan, Kazakhstan, and others; please forgive me if I’ve missed your country).
So the question is really how to log the time using your local time zone. Here are two possibilities; I’m sure there are others.
[li] Look at NSDate’s -descriptionWithLocale: [/li]
[li] Look at NSDateFormatter[/li][/ol]