Setting the Datepicker in IOS to pick only the Month and Year

Viewed 80970

Is there any way possible to set a UIDatePicker in XCode-Interface Builder to just use the rollers of the "month" and "year" without the "day"? I've tried checking the file properties in the IB yet failed to find a solution for my problem...

7 Answers

What you can do is restrict the range of dates, that can be used for input using the properties maximumDate and minimumDate

This has the added benefit of being automatically localized. i.e. the order of month and day is correct.

Related