Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Date Picker with Day of Week Instead of Full Date

I would like to have an iOS date picker that allows the user to select a day of week and time. For example: Wednesday 12:00 PM. I do not need to display the month or the day of the month like below. Does anyone know how to just allow the user to set only a day of the week and time? Thank you!

enter image description here

like image 799
Brandon Avatar asked Jan 25 '13 05:01

Brandon


2 Answers

In default IOS Date picker, it is not posible. but if you still want this kind of picker then you need to use simple picker and add logic in it, i mean make it custom according to your requirement.

like image 116
Hindu Avatar answered Oct 10 '22 18:10

Hindu


I don't think you can customize UIDatePicker to show week days. I think you can use UIPickerView and create your own date picker.

See user Igor's answer in this question to learn how to customize UIPickerView.

like image 34
Krishnabhadra Avatar answered Oct 10 '22 18:10

Krishnabhadra