Satheesh.B.Nambiar
Satheesh.B.Nambiar

Reputation: 63

how to change my date picker show in only month,date ,year, and time

The default UIDatePicker shows both the date and time. I need to show only the month, day, year and time like this

enter image description here

How can I change the date picker to this?

Upvotes: 1

Views: 2283

Answers (1)

Jaybit
Jaybit

Reputation: 1864

Well First off I suggest reading through the UIDatePicker documentation. Here are the Date Picker Modes:

Date Picker Mode
The mode of the date picker.

typedef enum {
   UIDatePickerModeTime,
   UIDatePickerModeDate,
   UIDatePickerModeDateAndTime,
   UIDatePickerModeCountDownTimer
} UIDatePickerMode;

If you cannot find what you need there. Then you can create your own by using a UIPickerView.

Upvotes: 1

Related Questions