From fc703f41db0475286beeef72074358fa7f533081 Mon Sep 17 00:00:00 2001 From: Reddy Uppathi Date: Sat, 7 Dec 2024 02:41:35 +0530 Subject: [PATCH] fix: format date intially --- packages/primevue/src/datepicker/DatePicker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/datepicker/DatePicker.vue b/packages/primevue/src/datepicker/DatePicker.vue index f806d08ed..cb3e046c9 100755 --- a/packages/primevue/src/datepicker/DatePicker.vue +++ b/packages/primevue/src/datepicker/DatePicker.vue @@ -1251,7 +1251,7 @@ export default { }, formatValue(value) { if (typeof value === 'string') { - return value; + return this.dateFormat ? this.formatDate(new Date(value), this.dateFormat) : value; } let formattedValue = '';