value from database: {13/01/2023 7:45:48 pm}
warning : The specified value "Sa/03/2023" does not conform to the required format, "yyyy-MM-dd".
<input asp-for="@Model.DateCreated" asp-format="dd/MM/yyyy" class="form-control form-control-solid" id="kt_datepicker" />
$("#kt_datepicker").daterangepicker({
singleDatePicker: true,
timePicker: false,
showDropdowns: true,
minYear: 2023,
maxYear: parseInt(moment().format("YYYY"), 12),
locale: {
format: "dd/MM/yyyy"
}
});
I think when you use the other format, MM or mm both represent numbers, so it won't make a difference. dinosaur game