You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to read an excel file and converting it to array/json.
The issue is that the date I am passing in file is read incorrectly and is just off by 10 seconds leading to an incorrect date.
Ex : The date in my file is 10th April, 2018 but the output which i get in date format is Mon Apr 09 2018 23:59:50 GMT+0530 (India Standard Time) (off by 10 seconds leading to one date less than the actual date).
I have tried with multiple combinations of passing parameters from the below parameters
var stroa = XLSX.utils.sheet_to_row_object_array(oWorkBook.Sheets[sSheetName], { raw: true });
Let me know if I am doing something in an incorrect way.
I am trying to read an excel file and converting it to array/json.
The issue is that the date I am passing in file is read incorrectly and is just off by 10 seconds leading to an incorrect date.
Ex : The date in my file is 10th April, 2018 but the output which i get in date format is Mon Apr 09 2018 23:59:50 GMT+0530 (India Standard Time) (off by 10 seconds leading to one date less than the actual date).
I have tried with multiple combinations of passing parameters from the below parameters
oWorkBook = XLSX.read(bFileData, { type: "binary", cellDates: true, cellStyles: true, dateNF: 'mm-dd-yy', cellText: false });
var stroa = XLSX.utils.sheet_to_row_object_array(oWorkBook.Sheets[sSheetName], { raw: true });
Let me know if I am doing something in an incorrect way.
OutboundShipment.xlsx
Thanks,
Vaibhav
The text was updated successfully, but these errors were encountered: