I took a baseViewController With a UIDatePicker.I am using this date picker in other viewControllers. When i am trying to get a date.always the previous date is showing up in the log.this is happening in every view controller.I took a baseViewController With a UIDatePicker