1

I want to remove year from iOS date picker. Need to use in iPhone app.

datepicker example

Black Frog
  • 11,595
  • 1
  • 35
  • 66
user717257
  • 13
  • 3

3 Answers3

2

This is down to the users phone localization settings... You'll need to create some sort of custom UIPicker if you want to make it the same for all.

user250322
  • 73
  • 6
1

Quick and easy way, create your UIPickerView with just two components.

Black Frog
  • 11,595
  • 1
  • 35
  • 66
0

You can't use the UIDatePicker because 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

Community
  • 1
  • 1
Jhaliya - Praveen Sharma
  • 31,697
  • 9
  • 72
  • 76