HTML
<div>{{ times }}</div>
JS
var now = new Date();
var year = now.getFullYear();
var month = now.getMonth() + 1;
var date = now.getDate();
var hour = now.getHours();
var minute = now.getMinutes();
var second = now.getSeconds();
this.times = `${year}-${month}-${date} ${hour}:${minute}:${second}`;