want to change the date format to the format of the year, month and day. The following figure shows the obtained date data
date-fns plug-in is installed. I wonder if there is a problem with import
import dateFns from "date-fns"
format the date data
ApplyDate: this.listQuery.ApplyDate ? dateFns.format(this.listQuery.ApplyDate, "YYYY-MM-DD") : "",
output date data in a table
<el-table-column prop="name" label="">
<template slot-scope="scope">
<span>{{scope.row.ApplyDate | timeForamter}}</span>
</template>
</el-table-column>
the first time I used this plug-in, I couldn"t open the official document and typed it according to other people"s code. I don"t know which step went wrong