http://www.perlmonks.org?node_id=1007674


in reply to Time duration using Excel::Writer::XLSX

I create reports using this module all the time. I create a text format for the date and time if you are not going to use it in a formula. This forces excel to display as I want the date and time not as Excel wants when the use has set the local date and time format on their computer. The code below is from my database while loop..

$worksheet1->write_string($row, $col++,$data->{$dataElement});