UIDatePicker show only month and day

You cannot use the UIDatePicker class as it stands to do this – The UIDatePicker only supports the following modes

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

Create a view and controller that implement the UIPickerViewDelegate and create your own – you may find a little more detail here Fixed labels in the selection bar of a UIPickerView

Leave a Comment