Hi,
Maybe you can try to add date format in excel cell, to do so edit you should edit your "export_entries.php" and do this steps :
1. Goto line 161 you will find this code :
$format_bold->setBorder(1);
add exactly bellow that code
$dateFormat =& $workbook->addFormat();
$dateFormat->setNumFormat('yyyy/mm/dd');
2. Goto around line 289 ~ 292, replace these code from :
if(!empty($row[$column_name]) && ($row[$column_name] != '0000-00-00')){
$form_data[$i][$j] = date("Y/m/d",strtotime($row[$column_name]));
}
to
if(!empty($row[$column_name]) && ($row[$column_name] != '0000-00-00')){
$form_data[$i][$j] = date("Y/m/d",strtotime($row[$column_name]));
}
$cell_date = $j;
3. Goto line 360, replace this code from :
$worksheet->write($row_num, $col_num, $data);
if ($cell_date == $col_num) {
$worksheet->write($row_num, $col_num, $data ,$dateFormat);
}
else {
$worksheet->write($row_num, $col_num, $data);
}
if you look at the cell format properties (right click the cell), it will show custom date format with "yyyy/mm/dd". Maybe this url will help you :
http://pear.php.net/manual/en/package.fileformats.spreadsheet-excel-writer.spreadsheet-excel-writer-format.setnumformat.php
and
http://bugs.pear.php.net/bugs/bug.php?id=3832
MachForm Support