Davide, is this server-side exporting with Excel package (i.e using excel/Table widget in excel view file) or DataTables' client-side export with Buttons plugin?
In case you are using Excel package, there's a property for excel/Table widget's column called "excelFormatCode" which can be used to format a datetime or numeric column like this:
//MyReportExcel.view.php
\koolreport\excel\Table::create(array(
...
"columns" => array(
"datetimeColumn" => array(
"type" => "datetime", // or "date", "time"
"excelFormatCode" => "dd/mm/yyyy", // e.g "31/12/2012"
...
)
)
));
This format code is the same one applied by MS Excel, for example:
Code Date
dd/mm/yyyy 03/01/2012
mm/dd/yyyy 01/03/2012
d-m-yyyy 3-1-2012
dd-mm-yy 03-01-12
dddd Tuesday
dd. mm. yyyy dddd 03. 01. 2012 Tuesday
mmmm January
d. mmmm yyyy 3. January 2012
mmmm dd, yyyy January 03, 2012
dddd, mmmm dd yyyy Tuesday, January 03 2012
ddmmyy 030112
dd. “text” 03. text
hh.mm 06.25
hhmm 0625
h:mm:ss AM/PM 6:25:31 am
hh “hours and” mm “minutes” 06 hours and 25 minutes
[m] 385 (the number of minutes since 00:00:00)
[s] 23131 (the number of seconds since 00:00:00)
hh:mm dd/mm/yyyy 06:25 04/11/2012
dddd hh:mm Thursday 06:25
Let us know if this works for you or not.