Open borjakhet opened 8 years ago
I have encountered the same problem, did you found solution? Thanks in advance!
We can separate year, month and day with back slash (/) in uploaded xls file like YYYY/MM/DD. Then $date = date('Y-m-d',strtotime(str_replace('/','-',$data->sheets[$i]['cells'][$j][5])));
hello i have also facing same problem how to solve this
Using this code:
Everything's ok, but I'm having problems with the dates.
There's a column on the .xls / .xlsx files with the following format
2015-02-10
When I write them to .csv, the output of this column is2015201520152015-FebFeb-TueTue.
How can I convert it to .csv using the code I post above but maintaining the date as the correct format (
2015-02-10
)?If I manually change the dates from
2015-01-01
to01-01-2015
(put the year at the end) the dates are parsed correctlyThanks in advance.