how about adding an event to enter add time to the current value. The problem is that it gets the time when the page loads. It does not update when selected. so try using this code. Hope this helps.
$('#dateTimePicker').datetimepicker({
timepicker: true,
format: "DD/MM/YYYY"
}).on("change", function(e) {
$(this).val( $(this).val()+' '+new Date().toLocaleTimeString());
});
source
share