I use node-xlsx for parsing Excel file in Node.js but Date cells have strange view before parsing:
in Excel: 01.03.2016 07:44:04
in Node.js before parsing: 42430.32226851852
How I can convert this string 42430.32226851852 to Unix-time format?
Update: Write myself solution that work for me:
var xlsxDate = '42430.32226851852'
var splitDate=xlsxDate.split('.');
var unixTime=new Date(1900, 0, splitDate[0]-1, 0, 0, Math.round(splitDate[1]/1157410)).getTime()/1000
console.log(unixTime)
Where 1157410 is ~1 second