CosmoCalendar icon indicating copy to clipboard operation
CosmoCalendar copied to clipboard

How to disable the past dates from current day?

Open Karthik2007 opened this issue 7 years ago • 2 comments

Is there any way to disable past dates ? Can we set range for no of months displayed in the calendar (current month to next year current month)?

Karthik2007 avatar Dec 04 '17 12:12 Karthik2007

            long n = System.currentTimeMillis();
            for (int i = 1; i <= 10; i++) {

                disabledDaysSet.add(n - (86400000 * i));

                Log.d("calender", "initViews: " + n);

            }
            calendarView.setDisabledDays(disabledDaysSet);



//  i can disable 10 days prior from current date not more max 30

  

saijayant avatar Jan 02 '18 08:01 saijayant

+1

beartistic avatar Oct 14 '18 04:10 beartistic