Skip to content

Commit

Permalink
fix: format date intially
Browse files Browse the repository at this point in the history
  • Loading branch information
Reddy Uppathi committed Dec 6, 2024
1 parent 1836742 commit fc703f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primevue/src/datepicker/DatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit fc703f4

Please sign in to comment.