check if dates are in range
bool inRange(DateTime from, DateTime to, DateTime comp) { return comp.isAfter(from) && comp.isBefore(to); }