Good this is my field to enter a holiday date, but the default format is like dd month, yyyy (27 September, 2018).
<div class="row">
<div class="input-field col s4">
<input type="date" class="datepicker" id="fechainivac" onchange="fnlimpiarvacaciones()" style="color: black;" value=" ">
<label style="color: black;" for="Fecha Inicio Vacaciones">Fecha Inicio Vacaciones</label>
</div>
I used a javascript code to change the format but it still does not change anything:
$(function() {
$('#fechainivac').datepicker({dateFormat:'dd-mm-yyyy'});
});
Some ideas to change the format, thank you in advance.