<script src="js/pikaday2.js"></script> <script> var picker = new Pikaday( { field: document.getElementById('datepicker'), firstDay: 0, minDate: new Date('2012-01-01'), maxDate: new Date('2025-12-31'), }); </script>