Android Question How to use DatePickerDialog.HighlightedDays

taylorw

Active Member
Licensed User
Hi everyone, I have try to use DatePickerDialog.HighlightedDays, anyone have used it before?
 

DonManfred

Expert
Licensed User
Longtime User
It would probably help if you post a link to the library used....
 
Upvote 0

taylorw

Active Member
Licensed User
Hi, that is the link of the library https://www.b4x.com/android/help/materialdatetimepicker.html#datepickerdialog.

And this is my code.

B4X:
Dim cal As Calendar
Dim DP As DatePickerDialog
    cal.Initialize("MMM dd, yyyy",cal.US,DateTime.Date(DateTime.Now))
    
    DP.Initialize("Date_From_Picker",DateTime.GetYear(DateTime.Now),DateTime.GetMonth(DateTime.now) - 1,DateTime.GetDayOfMonth(DateTime.now))
    DP.HighlightedDays( Array As Calendar(cal))
    DP.show("Date_From_Picker")

But I get this error.
error: not a statement
mostCurrent._dp.getHighlightedDays()[(int)(new de.donmanfred.CalendarWrapper[]{_cal})];
 
Upvote 0
Top