function formatTime(time) {
const tempDate =new Date(time);
const tempYear =tempDate.getFullYear();
const tempMonth =
tempDate.getMonth() +1 >9
?tempDate.getMonth() +1
:'0' + (tempDate.getMonth() +1);
const tempDay =
tempDate.getDate() >9 ?tempDate.getDate() :'0' +tempDate.getDate();
return tempYear.toString() +tempMonth.toString() +tempDay.toString();
}