Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: Reading time and dates from an Excel 2007 file

$
0
0
Hello,

I've been trying to read some dates and times from a excel 2007 file, so I can parse it to an iCalender output. And I was wondering if it is possible to get nicer time format out of PHPExcel.

Time example :
One of the time outputs I get is 0.83333333333333 which should represent 20:00 on a 24hour clock.
I figured out an math formula that converts it back to a 24hour clock (0.83333333333333 * 0.24) * 100.

Date example :
One of the date outputs I get is 41382, which should represent 4/18/2013 (MM-DD-YYYY), but for that one I still have to figure out an math formula.

But are there any settings to have a more friendly ouput ? Or an different kind of output ?

Thanks!

[Edit]I meant an excel 2007 file[/edit]

Viewing all articles
Browse latest Browse all 2707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>