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(){
Or try:
$("#datetimepicker").data().date;
I'm using the latest Bootstrap 3 DateTime Picker (http://eonasdan.github.io/bootstrap-datetimepicker/)
This is how you should use DateTime Picker inline:
var selectedDate = $("#datetimepicker").find(".active").data("day");
The above returned: 03/23/2017