Android Question Enter Dates (from keyboard - MM/DD/YYYY)

Robert Valentino

Well-Known Member
Licensed User
Longtime User
I need to allow entering DOBs (date of birth) from the keyboard (most will come from the keyboard) or by bringing up a Pick a date.

There are plenty of pick date routines, but couldn't find any that handled the user just typing in a date.

NOTE: these routines are specifically written to handle use old folks dates (mostly people between 50 - 80) so the program assumes if you enter a yy that is less than the current year that you mean 19xx

Mostly of you guys have superior knowledge than I do maybe you can chime in a little on better way?

Another note: at this webpage https://developer.android.com/reference/android/text/InputType#TYPE_DATETIME_VARIATION_NORMAL I found that using 16 in InputType should only allow dates, but didn't seem to work so I used IME to restrict to only certain characters

BobVal
 

Attachments

  • Project.zip
    18.1 KB · Views: 79
Top