title: Format datepicker date to YYYYMMDD
body: <p>I'm getting the data from the jquery datepicker plugin. This is the exact date that I'm getting: Thu Apr 02 2015.
  How do I format it into this: 20150402 ??</p>
  
  <p>I've tried some things but nothing is working so far. This is my code so far:</p>
  
  <pre><code>$("#button").click(function(){
  
                  var datum = $("#datepicker").datepicker("getDate");
                  console.log(datum);
  
  
  
              });
  </code></pre>