viewMode bootstrap datetimepicker disable months and years

1

I have the following code:

<div class="input-group date dtPicker @Html.GeneratePermssionID(item.IntegrationId)" style="width: 200px;" id="dateFrom" data-pl="5">                                                                                                                   
<span class="input-group-addon">De:</span>
@if (item.IntegrationExecutionStats == IntegrationExecutionStats.Running)
{
<input type="text" class="form-control dateFrom @Html.GeneratePermssionID(item.IntegrationId)" data-pl="5" placeholder="___/___/___" disabled>
}
else
{
<input type="text" class="form-control dateFrom @Html.GeneratePermssionID(item.IntegrationId)" data-pl="5" placeholder="___/___/___">
}
<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
</div>

I want to establish that the calendar shows only the days (not allowing access to the month or year). I put the following script just below the div does not work. What is wrong?

$("#dateFrom").datepicker( {
viewMode: "days", 
maxViewMode: "days"
});
    
asked by anonymous 03.08.2016 / 23:23

0 answers