<script type="text/javascript"> $(function () { var hdlist=["12/25/2015", "12/25/2016"]; $('#datetimepicker5').datetimepicker({ defaultDate: new Date(), // set up default today at beginning minDate: moment('01/01/2000'), //I need to show from 01/01/2000 maxDate: moment('02/01/2016'),//and End at 02/01/2016 disabledDates: [ //or get array from setdisableDates(hdlist) moment("12/25"), new Date(2013, 11-1 , 21), "11/22/2013 00:53" ] }); }); function setdisableDates(list){ //pick up special day to disable in hdlist var disableList = []; for(var key in list ){ disableList.push(moment(list[key])); } return disableList; } } </script>