javascript - Default date (today) bootstrap datepicker IE -
out of box datepicker highlights correct default date (today) in chrome. however, in ie 11 incorrectly picks date 03/12/2015 (way off in future).
i using following code
$('.datepicker').datetimepicker({ format: 'dd/mm/yyyy' }); <div class="input-group date datepicker"> <span class="input-group-addon"> <span class="glyphicon glyphicon-calendar"></span> </span> @html.textboxfor(model => model.dateofbirth, new { @class = "form-control" } </div>
any ideas combat this?
try add: usercurrent: false
full code:
$('.datetimepicker').datetimepicker({ language: 'nl', useseconds: false, usecurrent: false, showtoday: true });
Comments
Post a Comment