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 date = new Date();
var readable_date = date.toDateString();
console.log(readable_date);
// Tue Jun 09 2020
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;