Returns this DateTime clamped to min and max.
min
max
@useResult DateTime clampTo(DateTime min, DateTime max) { if (isBefore(min)) return min; if (isAfter(max)) return max; return this; }