styling help

Topics: Developer Forum, User Forum
Jun 21 at 5:04 PM
Hello everyone I'm currently working on a PHP program that exports to excel and I'm having trouble with the styling. the part I'm working on right now DATE format I'm trying to use PHPExcel_Style_NumberFormat::FORMAT_DATE_DATETIME); but i cant get it to work with my code this is the code I need it to work with.

$row = 7;
foreach ($dataArray as $order) {
$col = 0;
$orderArray = get_object_vars($order);

            ->setCellValueByColumnAndRow($col, $row, $orderArray['DueDate']);