1const handleTime = (dataD) => {
2 let data= new Date(dataD)
3 let hrs = data.getHours()
4 let mins = data.getMinutes()
5 if(hrs<=9)
6 hrs = '0' + hrs
7 if(mins<10)
8 mins = '0' + mins
9 const postTime= hrs + ':' + mins
10 return postTime
11 }