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
Asked
Active
Viewed 41 times
-1
-
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 Answers
0
What you are looking for is a NumberPicker
, but it's only
available starting from API level 11.
Alternatively:
You can use an
EditText
, withinputType="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.

minipif
- 4,756
- 3
- 30
- 39