I just want to ask on how to change format date for the VUE-JSON-EXCEL library?
After i click the generate excel button, it will display in the excel a date format like this "2022-06-10T18:18:34.000Z" instead of "10/6/2022 18:18:34"
Already use moment.js but it's not working
json_fields: {
Date: 'dateReserve',
},
<div >
<JsonExcel
:data="tempahanList"
:fields="json_fields"
type="csv"
name="List Tempahan.xls"
>
Download Excel
</JsonExcel>
</div>
CodePudding user response:
try for loop the result, then convert it using momentJS. I'm sure you can mate.