JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.25.0/moment.min.js"></script>
<div id="app">
<table>
<tr v-for="data in tableData">
<td>{{ data.uid }}</td>
<td>{{ formatDate(data.lastReadDate) }}</td>
</tr>
</table>
</div>
JavaScript
var sec = 1588351494;
var res =new Date(sec * 1000);
new Vue({
el: '#app',
data: function(){
return {
tableData: [
{
uid: '01020304050607',
lastReadDate: res,
},
]
};
},
methods: {
formatDate: function(date){
return moment(date).format("DD/MM/YYYY");
}
}
});