dateFormat in flatpickr
This is my code
$('#ConsultingDate').flatpickr({
allowInput: true,
maxDate: new Date(),
dateFormat: "Y-m-d",
});,
<input asp-for="ConsultingDate"/>
ConsultingDate = 26 September 2023.
The format I want to display the dates is 09/26/2023.
The only format that I managed to show was 2023-09-26
When you do it in this format dateFormat: 'd/m/Y', it shows 20/03/2023. Wrong!
How did you solve this problem that got me to the desired result 09/26/2023?
Replies (0)
Deleted comment
Deleted comment