title: how to print selected date month and year into different div tag
body: <p>it is a bootstrap datepicker.js file i want to get date month and day out of that datepicker and print those selected values in different div tags</p>
  
  <pre><code>$('.from_date').datepicker({
      weekStart: 1,
      startDate: '01/01/2012',
      endDate: FromEndDate, 
      autoclose: true
  }).on('changeDate', function(selected){
      startDate = new Date(selected.date.valueOf());
      startDate.setDate(startDate.getDate(newDate(selected.date.valueOf())));
      $('.to_date').datepicker('setStartDate', startDate);
  }); 
  </code></pre>
  
  <p>`</p>