4
I have this datepicker component of bootstrap
<div class="col-md-2">
<input id="dataSolicitacao" type="text" name="timepicker" class="b-datepicker form-control form-white" placeholder="Informe a data" data-orientation="top">
</div>
I put these Avascripts
<script>
$(document).ready(function () {
$('#dataSolicitacao').datepicker({
format: "DD/MM/yyyy",
language: "pt-BR",
minViewMode: 0;
orientation: auto
});
});
</script>
Or this one
<script type="text/javascript">
$(function() {
$('#dataSolicitacao').datetimepicker({
language: 'pt-BR'
});
});
</script>
The fact is, none of them worked. The latter, worse, as it opens another calendar underneath with time option, and it does not close when choosing the date and click off. Without also closes when choosing the date, but when clicking outside the calendar, closes.
How do I change the date format to Portuguese Brasil(dd/MM/yyyy)?
pq not using Datepicker from Jquery UI? https://jqueryui.com/datepicker/ . There is an option that defines the date region.
– Matheus