$("#datetimepicker3").on("hide.datetimepicker input", function (e) { console.log($('#datetimepicker3').data("datetimepicker").input.val()) ; });