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 894021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:18:51+00:00 2026-05-15T14:18:51+00:00

1) I have been working on fetching data from an excel sheet i can

  • 0

1) I have been working on fetching data from an excel sheet i can see on a cell written Oct-10 but when i select it i see 10/31/2000 on fx column right at top ,when i fetch data from the .xls sheet using http://phpexcel.codeplex.com library version number 1.7.3 ,it is returning float("40482") ,

can any body tell how to convert it to either 10/31/2000"/"Oct-10 all the cells other than this one are reading correctly so there is no error in code.

2) Also Please tell how can i get a better tutorial for this library as one provided on this site is not very helpful or i am using wrong library.
thanks in advance

  • 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-15T14:18:52+00:00Added an answer on May 15, 2026 at 2:18 pm

    See answer to this question Days since 1900
    or read section 3.2 (and specifically 3.2.3) in the not very helpful “PHPExcel Function Reference Developer Documentation” which describes exactly how to convert between Excel dates and PHP dates (or PHP date/time objects).

    The function you’re after is:

    $PHPdateValue = PHPExcel_Shared_Date::ExcelToPHP($excelDateValue);
    

    or

    $PHPdateObject = PHPExcel_Shared_Date::ExcelToPHPObject($excelDateValue);
    

    There are links to a number of tutorials in a variety of languages on the documents section of the PHPExcel website. And in addition to the documentation, there’s plenty of code examples in the /Tests subdirectory of the distribution

    Example of returning a PHP date/time object:
    include ‘PHPExcel.php’;

    $excelDateValue = 40482.0;
    $dateObj = PHPExcel_Shared_Date::ExcelToPHPObject($excelDateValue);
    
    echo $dateObj->format('Y-m-d H:i:s');
    

    displays

    2010-10-31 00:00:00
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on asp.net 3.5.I want to Convert a DateTime Data from
So I've been working on fetching data from a web service and using it
I have been working on a project on and off, but I haven't touched
I am working on a iphone/Ipod touch project involving saving and fetching data from
I have been working in C# for quite some time but come around this
I have been working on a new menu and I'm almost there, but the
I have been working with this for a whole day but i cannot find
I have been working on a project recently where a Player can create a
I have been working on a module to sync data between client side CRM
I have been working on a method to sync core data stored in an

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.