Vue + element table listing the date format conversion
Question:
Results:
Implementation:
1, import the package:
Import from Fecha AS * "Element-UI / lib / utils / DATE";
examples:
2, plus a list of <function> Properties
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: