I am using http://www.malot.fr/bootstrap-datetimepicker for my application.
Below is the html code.
<div class="input-group date form_datetime pull-left" data-date-format="dd-mm-yyyy" style="padding:0;width:48%;" >
<input class="form-control" type="text" value="" >
<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
</div>
Javascript code:
$('.form_datetime').datetimepicker({
weekStart: 1,
autoclose: true,
todayHighlight: true,
startView: 2,
minView:2,
forceParse: 0,
showMeridian: 1,
maxView: 2,
todayBtn:0
});
I am having next and prevoius buttons next to calendar to update date to next and previous dates.
Not able to update date to next and previous dates on click of the buttons.