Hi there,
sorry to post continuosly but coming from ASP my PHP is not up to scratch yet.
I have succesfully managed to export to excel the output of a page.
header("Content-Type: application/vnd.ms-excel; name='excel'");
header("Content-disposition: attachment; filename=" .date("Y-m-d").".xls");
include 'ReportTableHeading.Include';
the code above works perfectly but, when it comes to a datetime field it only outputs the time (00:00:00).
Changing the excel column setting to date at a later stage will show the correct date value.
Can I control excel's output to each single column?
If not, how do I avoid this and output only date with no time?
Thanks
Qatqat
Life is what happens when you are making other plans.
sorry to post continuosly but coming from ASP my PHP is not up to scratch yet.
I have succesfully managed to export to excel the output of a page.
header("Content-Type: application/vnd.ms-excel; name='excel'");
header("Content-disposition: attachment; filename=" .date("Y-m-d").".xls");
include 'ReportTableHeading.Include';
the code above works perfectly but, when it comes to a datetime field it only outputs the time (00:00:00).
Changing the excel column setting to date at a later stage will show the correct date value.
Can I control excel's output to each single column?
If not, how do I avoid this and output only date with no time?
Thanks
Qatqat
Life is what happens when you are making other plans.