moment(new Date()).format("DD/MM/YYYY")
moment().format("YYYY-MM-DD[T]HH:mm:ss");
var string = moment('18/01/2016', 'DD/MM/YYYY').format("DD MMM YYYY")
result.innerHTML = string;
moment(new Date()).format("DD.MM.YYYY")
const format1 = "YYYY-MM-DD HH:mm:ss"
const format2 = "YYYY-MM-DD"
var date1 = new Date("2020-06-24 22:57:36");
var date2 = new Date();
dateTime1 = moment(date1).format(format1);
dateTime2 = moment(date2).format(format2);
document.getElementById("demo1").innerHTML = dateTime1;
document.getElementById("demo2").innerHTML = dateTime2;