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

New Post: How to read just a date from excel into MySql?

$
0
0

Ok, after opening my eyes ;-)

It's strange you don't see the exception throw by isDateTime : this mehod want a cell (object) not a cell coordinate, so rewrite your test using $cell (current cell object if i'm correct).

Next, you have "in your hand", a date formatted in your locale (i guess) but if your MySQL field is date's type, it's better to have a string formatted accordingly for your insert, so format the "number" using FORMAT_DATE_YYYYMMDD2.


Viewing all articles
Browse latest Browse all 2707

Trending Articles



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