1

I want to show only date which is associated with Monday in UIDatePicker, is it possible?

BenMorel
  • 34,448
  • 50
  • 182
  • 322
sachin
  • 1,015
  • 4
  • 11
  • 24

2 Answers2

1

With built in UIDatePicker you cannot do that.You will have to create UIPickerview with specific dates you want. More info here.

Community
  • 1
  • 1
Vignesh
  • 10,205
  • 2
  • 35
  • 73
0

for sure, feed your datePicker with an array of the dates that are mondays

just check the nsdate for your desired start date, and the next monday, then work out how much you have to add so is only mondays, create a loop to make your array, and use it as the data source of your picker

manuelBetancurt
  • 15,428
  • 33
  • 118
  • 216