selectable abstract method

bool selectable(
  1. DateTime date
)

Returns true if the given date can be selected/unselected.

date should always in UTC timezone and truncated to the nearest day.

Note

It is unsafe for this function to have side effects since it may be called more than once for a single date. As it is called frequently, it should not be computationally expensive.

Implementation

bool selectable(DateTime date);