diff --git a/wwwroot/js/reminderrecord.js b/wwwroot/js/reminderrecord.js index d5ebdf6..0d5b7a4 100644 --- a/wwwroot/js/reminderrecord.js +++ b/wwwroot/js/reminderrecord.js @@ -3,7 +3,8 @@ if (data) { $("#reminderRecordModalContent").html(data); $('#reminderDate').datepicker({ - startDate: "+0d" + startDate: "+0d", + format: getShortDatePattern().pattern }); $("#reminderRecordModal").modal("show"); } diff --git a/wwwroot/js/vehicle.js b/wwwroot/js/vehicle.js index 55d9f90..a69a743 100644 --- a/wwwroot/js/vehicle.js +++ b/wwwroot/js/vehicle.js @@ -190,7 +190,8 @@ function showAddReminderModal(reminderModalInput) { $.post('/Vehicle/GetAddReminderRecordPartialView', function (data) { $("#reminderRecordModalContent").html(data); $('#reminderDate').datepicker({ - startDate: "+0d" + startDate: "+0d", + format: getShortDatePattern().pattern }); $("#reminderRecordModal").modal("show"); });