title: Get the value of bootstrap Datetimepicker in JavaScript
body: <p>I need to get the value of Datetimepicker in my JavaScript function. I have made something like this, but it doesn't work: </p>
  
  <pre><code>$("#date").click( function(){
      alert(document.getElementById('datetimepicker1').value);
  });
  </code></pre>
  
  <blockquote>
    <p>It gives me 'undefined'</p>
  </blockquote>