catamphetamine / read-excel-file

Read *.xlsx files in a browser or Node.js. Parse to JSON with a strict schema.

Home Page:https://catamphetamine.gitlab.io/read-excel-file/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Date values are not returned the same from a cell with the format mm/dd/yyyy

sgnark opened this issue · comments

I am facing a issue with the date values.
In a cell I am having a date value with the format mm/dd/yyyy. While reading the excel file the value returned is one day lesser than the value in the cell.

Example: the cell is having 4/30/2017, the returned value from the cell is "Sat Apr 29 2017 19:00:00 GMT-0500 (Central Daylight Time)"

can you please review and confirm is this existing issue or there is a configuration which I missed.

Note: while reading the excel I am even the format as mm/dd/yyyy passed or not, the issue exists.

Hi,

in the browser console its printing as for the cell value "Sat Apr 29 2017 19:00:00 GMT-0500 (Central Daylight Time)"

if its UTC then it should return the value as UTC format ?

I am in the time zone as GMT-0500 (Central Daylight Time) but the value is alone different. Why is it so ?

Sorry Still I am not understanding it correctly.

I have a cell value as 4/30/2017 with the format as DD/MM/YYYY. Also my location is Mexico City.

what is the return value ? how it should print ?