mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-20 22:35:06 +00:00
sentDate + date-fns format
This commit is contained in:
@@ -8,13 +8,18 @@
|
||||
<td><input type="checkbox" /></td>
|
||||
<td>{{email.subject}}</td>
|
||||
<td>{{email.body}}</td>
|
||||
<td>{{format(new Date(email.sentDate), 'HH:MM MMM do yyyy')}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { format } from 'date-fns'
|
||||
export default {
|
||||
setup(){
|
||||
return {format}
|
||||
},
|
||||
props: {
|
||||
emails: {
|
||||
type: Array,
|
||||
|
||||
Reference in New Issue
Block a user