Inside of Excel file, I have an hour:minute
time format, example of one value from that excel file is: "19:15"
After uploading that file to my application, it is being read as "0.8020833333333334"
.
I want to convert that value from column ("0.8020833333333334"
) to get hours and minutes.
Here's what I have accomplished so far:
const extractTime = new Date(Math.round((0.8020833333333334 - 25569) * 864e5));
The result is not what I expected.
How can I convert this number to get the hour as 19, and minutes as 15?