From 2a842d1c8c4b52e4ed9b6826bfff2f99fd20f6a0 Mon Sep 17 00:00:00 2001 From: "DESKTOP-GENO133\\IvanPlex" Date: Sun, 7 Jan 2024 16:12:16 -0700 Subject: [PATCH] fixed datepicker format not parsing correctly. --- wwwroot/js/reminderrecord.js | 3 ++- wwwroot/js/vehicle.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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"); });