Skip to content

Instantly share code, notes, and snippets.

@pedroinfo
Last active October 1, 2021 18:17
Show Gist options
  • Save pedroinfo/0df04053ace3afc3457222dd7c0e7911 to your computer and use it in GitHub Desktop.
Save pedroinfo/0df04053ace3afc3457222dd7c0e7911 to your computer and use it in GitHub Desktop.
<div class="input-group date">
<input type="text" asp-for="DataPlanejada" class="form-control datepicker-button autocomplete="off">
<div class="input-group-append">
<label class="input-group-text" asp-for="DataPlanejada"><i class="fa fa-calendar"></i></label>
</div>
</div>
$('.datepkr_ano, .input-group.ano datepkr_ano').datepicker({
format: "dd/mm/yyyy",
//defaultViewDate: { year: 2021, month: 1, day: 1 },
weekStart: 1,
minViewMode: 2,
maxViewMode: 2,
todayBtn: "linked",
clearBtn: true,
language: "pt-BR",
daysOfWeekHighlighted: "0,6",
autoclose: true
//orientation: "auto"
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment