Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6656099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:36:06+00:00 2026-05-26T01:36:06+00:00

I found a PHP script that parses excel files, but there seems to be

  • 0

I found a PHP script that parses excel files, but there seems to be some kind of numbering system or encoding that is associated with dates. For example, the original .xls spreadseets contains this date in this format:

16-Sep-11

However, the information that is parsed by the script shows the following integer to represent this date:

40802

If someone could help me by identifying what representation is being used for the date, then I think I can figure out how to do the conversion.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:36:07+00:00Added an answer on May 26, 2026 at 1:36 am

    Depending on the properties of the file in question, Excel uses one of two incompatible formats to store dates, the “1900” system and the “1904” system. By default, a file that originated on Windows will use the “1900” system, while a file that originated on a Mac will use the “1904” system. In the 1900 system, the number stored is the number of days elapsed since 1 Jan 1900, while in the 1904 system, the number stored is the number of days elapsed since 1 Jan 1904. There are various historical reasons (or is that hysterical raisins?) why Excel uses the two formats. Times are also stored in a similar manner, with the integer part being the date and the fractional part being the portion of the day that has passed.

    Here is a Microsoft Knowlegebase article with more information: http://support.microsoft.com/kb/214330

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found this: http://www.evolt.org/failover-database-connection-with-php-mysql and similar examples. But is there a better way? I
I have found some libraries or web services in PHP that does the job.
I have a PHP search script that queries a MySQL database and then parses
I have found an open source PHP script that uses a select menu to
I once tried to implement Comet in PHP. Soon, I found that PHP is
The PHP documentation can be found here , but I think it's rather lacking.
I found that using Smarty with PHP, sometimes extra time will need to be
There are plenty of Libraries to parse XML, but it seems there aren't many
I've got a PHP script in the works that is a job worker; its
I'm using a PHP script that dynamically generates transparent PNGs for use as CSS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.