Skip to content

Commit

Permalink
Merge pull request #6931 from sivareddyuppathi/date-format
Browse files Browse the repository at this point in the history
fix: format date intially
  • Loading branch information
tugcekucukoglu authored Dec 10, 2024
2 parents 7d4f295 + fc703f4 commit 9be739b
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 9be739b

Please sign in to comment.