title: Change the date format to yyyy-mm-dd in Datepicker
body: <p>I am using Datepicker for my HTML field . 
  The HTML code is : </p>
  
  <pre><code>&lt;input type="text" id="from-datepicker"/&gt;
  </code></pre>
  
  <p>The Jquery code to set and get the date picker fields is : </p>
  
  <pre><code> $("#from-datepicker").datepicker({ dateFormat: 'yy-mm-dd'});
              $("#from-datepicker").on("change", function () {
                  var fromdate = $(this).val();
                  alert(fromdate);
              });
  </code></pre>
  
  <p>This code, however, displays the field in <code>'mm-dd-yyyy'</code> format. 
  Can someone tell me where am I going wrong ? </p>
  
  <p>My imported CDNs are : </p>
  
  <pre><code> &lt;script type="text/javascript"
              src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.0/js/bootstrap-datepicker.min.js"&gt;&lt;/script&gt;
  
      &lt;link rel="stylesheet" type="text/css"
            href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.1/css/bootstrap-datepicker3.min.css"&gt;
  </code></pre>
  
  <p>Thanks in advance.</p>