You can easily enable date selection to the form element using Bootstrap datepicker if you are already using Bootstrap in your page.
You need to add external Bootstrap datepicker library.
This allows the users to select any from the datepicker and they are not restricted.
To restrict the date selection you can use
endDate option while initializing it on the HTML element.