I am using bootstrap date time picker in my web application, made in PHP/HTML5 and JavaScript. I am currently using one from here: http://tarruda.github.io/bootstrap-datetimepic
Initialize your datetimepicker like this
For disable time
$(document).ready(function(){
$('#dp3').datetimepicker({
pickTime: false
});
});
For disable date
$(document).ready(function(){
$('#dp3').datetimepicker({
pickDate: false
});
});
To disable both date and time
$(document).ready(function(){
$("#dp3").datetimepicker('disable');
});
please refer following documentation if you have any doubt
http://eonasdan.github.io/bootstrap-datetimepicker/#options