I have bootstrap datetimepicker in my form. How to initialize it with my own time. I tried several options none of these are working. And also I want to disable past dates on date picker.
$('#timePicker').datetimepicker({
useCurrent: false,
format: "HH:mm",
pickDate: false,
defaultTime: '01:00 PM'
});
EDIT:
I tried the following, but it is initializing the picker as 03:00 AM and load the input field with this value. I just need the picker to be initialized with 01:00 PM, but no value is expected in the input field until user select the time from the picker.
$('#timePicker').datetimepicker({
useCurrent: false,
format: "hh:mm A",
defaultDate: '2000-01-01 01:00 PM'
});