title: how to change the date format of my bootstrap datetimepicker
body: <p>i am new in bootstrap datetimepicker. How would i change its defaut time format?. I have a default date format of mysql (yyyy/mm/dd). I want also to change my datetimepicker so that it co-inside my database date format.</p>
  
  <p>Here is the bootstrap date time picker:</p>
  
  <pre><code>&lt;form id="date"&gt;
  &lt;div class="form-group"&gt;
       &lt;label class="control-label col-sm-3" for="pbdate"&gt;Birthdate:&lt;/label&gt;
         &lt;div class="col-sm-5"&gt;
           &lt;div class="input-group date" data-provide="datepicker"&gt;
             &lt;input type="text" class="form-control" id="pabdate" name="pabdate" placeholder="Birthdate" required&gt;
                &lt;div class="input-group-addon"&gt;
                  &lt;span class="glyphicon glyphicon-th"&gt;&lt;/span&gt;
                &lt;/div&gt;
           &lt;/div&gt;
         &lt;/div&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>here is the format i want:</p>
  
  <pre><code>$('.datepicker').datepicker({
      format: 'yyyy/mm/dd'    // pass here your desired format
   });
  </code></pre>
  
  <p>Here is my ajax:</p>
  
  <pre><code>$.ajax({
      url: siteurl+"sec_date/mydate",
      type: "POST",
      data: $('#date').serialize(),
      dataType: "JSON",
          success: function(data) {
       }
     )};
  </code></pre>
  
  <p>When i <code>var_dump</code> it in my controller because i am using codeigniter the output is still <code>mm/dd/yyyy</code></p>