GithubHelp home page GithubHelp logo

Comments (8)

jcampana avatar jcampana commented on June 30, 2024 1

Hi, waiting for this issue. Any news? Thanks @MaxDesiatov !

from corexlsx.

MaxDesiatov avatar MaxDesiatov commented on June 30, 2024

Hi @sourav13, thank you for reporting this. Would you be able to attach this file here or to send it to [email protected] if you can't share the file publicly? This way it would be significantly easier to reproduce and fix the issue.

from corexlsx.

sourav13 avatar sourav13 commented on June 30, 2024

Dates.xlsx

from corexlsx.

sourav13 avatar sourav13 commented on June 30, 2024

Hello @MaxDesiatov So have you tested it with above file?

from corexlsx.

MaxDesiatov avatar MaxDesiatov commented on June 30, 2024

Hi @sourav13, these dates are stored in a special "OLE Automation Date" format:

An OLE Automation date is implemented as a floating-point number whose integral component is the number of days before or after midnight, 30 December 1899, and whose fractional component represents the time on that day divided by 24. For example, midnight, 31 December 1899 is represented by 1.0; 6 A.M., 1 January 1900 is represented by 2.25; midnight, 29 December 1899 is represented by -1.0; and 6 A.M., 29 December 1899 is represented by -1.25.

For now you can parse these dates by converting the string to a Double or Decimal value and then converting it to a date using an algorithm described above. CoreXLSX will be able to convert those dates for you automatically in a future version and I'll keep this issue open until then.

from corexlsx.

sourav13 avatar sourav13 commented on June 30, 2024

@MaxDesiatov I tried parsing them as strings, If they would have been parsable as strings I would have tried converting them to the desired format but I can't read them as Strings from sharedStrings Model.

from corexlsx.

MaxDesiatov avatar MaxDesiatov commented on June 30, 2024

These cells don't have type "s" which would indicate their value is stored in sharedStrings, it can be accessed directly from the value property instead.

from corexlsx.

MaxDesiatov avatar MaxDesiatov commented on June 30, 2024

I apologize for the delay. There's a new dateValue property added on the Cell type in #102, hope this resolves the issue.

from corexlsx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.