date time display options in html code example
Example 1: html add mindate to datetime-local picker
<form>
<label for="party">Enter a date and time for your party booking:</label>
<input id="party" type="datetime-local" name="partydate" min="2017-06-01T08:30" max="2017-06-30T16:30">
</form>
Example 2: start date time picker from day to year in html
$('#datetimepicker').datetimepicker({ format: 'yyyy-mm-dd hh:ii'});