Hello All,
I am trying to restraint the period that the user has to pick some days and I am using the DatePickerDialog.
However, to set minDate, MaxDate and SelectableDays I must enter the values in java.util.calendar format.
How do I do that ?
I am trying to restraint the period that the user has to pick some days and I am using the DatePickerDialog.
However, to set minDate, MaxDate and SelectableDays I must enter the values in java.util.calendar format.
How do I do that ?
B4X:
Dim today As Long = DateTime.Now
Dim DP As DatePickerDialog
DP.Initialize("Date_From_Picker",DateTime.GetYear(today),DateTime.GetMonth(today), DateTime.GetDayOfMonth(today))
DP.MinDate = ??
DP.MaxDate = ??
DP.show("Date_From_Picker")