https://momentjs.com/
moment().format('YYYY-MM-DD hh:mm:ss'); // "2020-01-10 11:55:43" moment(1578478211000).format('YYYY-MM-DD hh:mm:ss'); // "2020-01-08 06:10:11"