CHANGED:applied the UISwitch+DatePicker implementation