mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Merge pull request #6931 from sivareddyuppathi/date-format
fix: format date intially
This commit is contained in:
commit
9be739b81f
1 changed files with 1 additions and 1 deletions
|
@ -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 = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue