Vue + elemnt table listing the date format conversion

Vue + element table listing the date format conversion

Question:
This is no conversion date format, still have time: hours - minutes - seconds
Results:
This is the date becomes the date format conversion, no time: hours - minutes - seconds
Implementation:
1, import the package:
Import from Fecha AS * "Element-UI / lib / utils / DATE";
examples:
To import time packet format conversion
2, plus a list of <function> Properties
Plus function properties on the list

3, the "methods" together with the following methods
// Date Time format listing
the dateFormat (Row, column, CellValue) {
return CellValue fecha.format (new new a Date (CellValue), 'the MM-dd-YYYY'):? '' ;
},
for example:
Storage method

Guess you like

Origin www.cnblogs.com/panliwen-success/p/12169529.html