You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @tahafarooqui
its little late but I can suggest a solution:
first import compile 'joda-time:joda-time:2.9.6' library to perform operations on date and date-ranges.
take an object of class DateTime from this library( which I am taking as DateTime datenow;)
select a min and max date for a date-range:
minDate = new MonthAdapter.CalendarDay(datenow.getYear(), datenow.getMonthOfYear(), datenow.getDayOfMonth());
maxDate = new MonthAdapter.CalendarDay(datenow.getYear() + 5, datenow.getMonthOfYear() + 5, datenow.getDayOfMonth());
disabledDays = new SparseArray<>();
start = Calendar.getInstance();
start.setTimeInMillis(minDate.getDateInMillis());
end = Calendar.getInstance();
end.setTimeInMillis(maxDate.getDateInMillis());
while (start.before(endCal) || start.equals(endCal)) {
int key = Utils.formatDisabledDayForKey(start.get(Calendar.YEAR),
start.get(Calendar.MONTH), start.get(Calendar.DAY_OF_MONTH));
disabledDays.put(key, new MonthAdapter.CalendarDay(start));
}
start.add(Calendar.DAY_OF_MONTH, 1);
How to disable feature dates, Which is greater then today date.
The text was updated successfully, but these errors were encountered: