Some questions about reading table.

294 views
Skip to first unread message

Valts Dārznieks

unread,
Jul 12, 2012, 10:58:21 AM7/12/12
to php-excel-re...@googlegroups.com
Hello.
I have XLSX file and I am trying to read values from it and save in database.
It's working fine except on the field where I have date "6/25/2012" it reads it as 41085, why is that so? How to make it read as String?
And I have some local native UTF-8 symbols in my excel file, but they don't show when I read them with php? How to set up UTF-8 for it ?

Thank you for any help

Nyle Davis

unread,
Jul 12, 2012, 1:03:11 PM7/12/12
to vdarz...@gmail.com, php-excel-re...@googlegroups.com
Valts,

Did you open the spreadsheet and set the column type to date with format
of "dd/mm/yyyy"?

If not then that is the value that Excel set for the field. If you or
your customer run this often, I would suggest you set this up as a
template file, ie .xlt/.xltx so formatting is preserved. If this does
not work then you will have to convert the value to the desired date.

Cheers!

Nyle E. Davis
davis...@gmail.com
tbo...@gmail.com
(214)-997-3304 Office
(214)-779-6918 Cell
> --
> You received this message because you are subscribed to the Google
> Groups "php-excel-reader-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/php-excel-reader-discuss/-/qF60Ss4ZOG8J.
> To post to this group, send email to
> php-excel-re...@googlegroups.com.
> To unsubscribe from this group, send email to
> php-excel-reader-d...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/php-excel-reader-discuss?hl=en.


Valts Dārznieks

unread,
Jul 12, 2012, 1:09:47 PM7/12/12
to php-excel-re...@googlegroups.com, vdarz...@gmail.com
Thank you for your reply. This document is as I get it from bank (account summary for some period) so I cant change anything about it and I presume this formatting will stay "forever". Could you please let me know what does this number stand for? What would be the formula to convert it to time-stamp?
Nyle thank You very much for your help.
 

silkfire

unread,
Jul 12, 2012, 1:57:53 PM7/12/12
to php-excel-re...@googlegroups.com
How on earth are you reading XLSX files with php-excel-reader which only can read the ancient XLS format?

Gabriel

vishal17garg

unread,
Jul 19, 2012, 5:04:30 PM7/19/12
to php-excel-re...@googlegroups.com, vdarz...@gmail.com
Hello Valts,

Would you please let me know how you are able to read .xlsx file using this library. I am getting 'not readable' error.

Thanks!

Usman Arfani

unread,
Feb 24, 2016, 5:17:45 AM2/24/16
to php-excel-reader-discuss, vdarz...@gmail.com
How did you read XLSX file in this reader?

Valts Der

unread,
Feb 24, 2016, 5:22:38 AM2/24/16
to php-excel-reader-discuss, vdarz...@gmail.com
I'm sorry this post and project is so old I really can't remember.
Reply all
Reply to author
Forward
0 new messages