clampBetween method

DateTime clampBetween(
  1. DateTime min,
  2. DateTime max
)

Clamps this date between min and max

Implementation

DateTime clampBetween(DateTime min, DateTime max) {
  return DateCalculations.clamp(this, min, max);
}