I have this jsp code (took by http://eonasdan.github.io/bootstrap-datetimepicker/)
<div class='input-group date' id='datetimepicker5'>
<input ng-model="utente.dt_nascita" type='text' class="col-sm-3 form-control" data-date-format="YYYY/MM/DD"/>
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
And this code in my controller.js:
$('#datetimepicker5').datetimepicker({
pickTime: false,
autoclose : true
});
I don't want the time! I want that datapicker asks only the date but it doesn't.
I resolved using:
<div class="form-group">
<label for="inputDate" class="col-sm-3 control-label">Data di nascita</label>
<div class="col-sm-5">
<div class='input-group date' id='datetimepicker5'>
<input ng-model="utente.dt_nascita" type='text' class="col-sm-3 form-control" data-date-format="YYYY/MM/DD"/>
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div>
and:
$('#datetimepicker5').datetimepicker({
format: 'yyyy-mm-dd',
startView: 'decade',
minView: 'month',
autoclose: true
});