isFirstHalfOfMonth static method

bool isFirstHalfOfMonth(
  1. DateTime date
)

Check if a date is in the first half of the month (1-15)

Implementation

static bool isFirstHalfOfMonth(DateTime date) {
  return date.day <= 15;
}