Android Question B4XPreferencesDialog: B4XDateTemplate restrict (limit) months

José J. Aguilar

Expert
Licensed User
Hi all:

I'm using B4XPreferencesDialog to show a form and add some data.
I need the user can choose just the current and the previous month (i.e. today 2021/05/18 it should show just March and April)

The way I see the easiest it using the Pref_IsValid sub to tell the user the date is not valid.
But, is there any other way?
I see a B4XPref.DateTemplate.MinYear and MaxYear, but there's nothing similar with months.
Maybe should I to modify the library like in this thread?

Thanks in advance.
 
Top