Constraints

min and max limit which calendar days are selectable. They do not define a selected range — use selection="range" for that.

Min / max window

Today → +30 days (set on load)

Output

Disabled

Output
picker.setAttribute('min', today.toISOString());
picker.setAttribute('max', in30Days.toISOString());