let dateStr =new Date("Wed Aug 05 18:11:48 UTC 2020")
dateStr.toLocaleDateString()
// "05/08/2020"
dateStr.toTimeString()
// "23:41:48 GMT+0530 (India Standard Time)"
var currentDate = new Date();
var date = currentDate.getDate();
var month = currentDate.getMonth(); //Be careful! January is 0 not 1
var year = currentDate.getFullYear();
var dateString = date + "-" +(month + 1) + "-" + year;