I need to get the value of Datetimepicker in my JavaScript function. I have made something like this, but it doesn\'t work:
$(\"#date\").click( function(){
This is working for me using this Bootsrap Datetimepiker, it returns the value as it is shown in the datepicker input, e.g. 2019-04-11
2019-04-11
$('#myDateTimePicker').on('click,focusout', function (){ var myDate = $("#myDateTimePicker").val(); //console.log(myDate); //alert(myDate); });