JavaScript calendar
Using the validRange property, the days oustside the range would be disabled.
<html> <script src="https://jsuites.net/v3/jsuites.js"></script> <link rel="stylesheet" href="https://jsuites.net/v3/jsuites.css" type="text/css" /> <input id='calendar'> <script> jSuites.calendar(document.getElementById('calendar'), { time: true, format: 'DD/MM/YYYY HH24:MI', placeholder: 'DD/MM/YYYY HH24:MI', readonly: false, validRange: [ '2021-01-01', '2021-12-31' ] }); </script> </html>