Take the 2-minute tour ×

I want to get a date data from a form but only the date, not including the month nor the year. Can I use datepicker in the form but with the date only? If it's not possible, what the efficient way to get date information from a form ? Thanks

share|improve this question
So you just want a number? –  minipif Jul 21 '13 at 10:55
number 1 to 31(date) yes –  Aditya Aufar Jul 21 '13 at 11:00
why don't you use a simple spinner?! –  yugidroid Jul 21 '13 at 11:05

1 Answer 1

up vote 0 down vote accepted

What you are looking for is a NumberPicker, but it's only available starting from API level 11.


  • You can use an EditText, with inputType="number", and do you checking of being in the 1..31 range in code.

  • You can use a SeekBar, and display the value next to it dynamically.

  • You can use a Spinner, and list the 31 possibilities.

share|improve this answer

Your Answer


