Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable only date selection in UIDatePicker not time selection

I am using UIDatePicker in my app and I want to disable only date selection in it and time selection should not be effected.

Can anyone help me with this.

like image 906
user2174560 Avatar asked Dec 12 '22 16:12

user2174560


1 Answers

Set the datePickerMode to UIDatePickerModeTime.

like image 119
bobnoble Avatar answered Jan 29 '23 05:01

bobnoble