Im currently Using MaterialDateTimePicker library for date and time picker, But im facing issue where i cant disable whole week except certain days that i get from API .
In the library it says you can achieve something like this by using
Calendar[] days = new Calendar[13];
for (int i = -6; i < 7; i++) {
Calendar day = Calendar.getInstance();
day.add(Calendar.DAY_OF_MONTH, i * 2);
days[i + 6] = day;
}
dpd.setSelectableDays(days);
but how do i change that to disable week days by name
After some searching and adjusting i managed to do it with the following code :