javascriptjquerycsstwitter-bootstrapdatapicker

How to make Bootstrap's datapicker input with only day without time


This is my code, I need delete time and put day before date when select date

<div class="input-group input-group-icon date" id="datetimepicker1">
   <input type="text" class="form-control dat" placeholder="25.8.2015">
   <span class="input-group-addon">
    <span class="icon"><i class="fa fa-calendar"></i></span>
    </span>
</div>

$(function () {
 $('#datetimepicker2').datetimepicker({
  locale: 'hr'
 });
});

Solution

  • Small 'd' equal writing out the text while big 'D' equal numbers.

    Here is a DEMO - JS-FIDDLE

          $('#datetimepicker1').datetimepicker({
    
            format: 'ddd D.MM.YYYY'
    
          });