Re: Speadsheet Excel Writer:: How to Autosize cells?

From: Date: Fri, 19 Nov 2004 16:45:03 +0000
Subject: Re: Speadsheet Excel Writer:: How to Autosize cells?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15688@lists.php.net to get a copy of this message
"Alexander Petri" <alex.petri@gmx.de> wrote in message news:20041119155121.36945.qmail@pb1.pair.com... > Is there an Option to Autosize the cells? > > and how can i format datefields from db(YYYY-mm-dd HH:II:SS) to mybe > dd.mm.yyyy hh:ii:ss? Hi Alex ;) can't help you with autosize but for the Excel date format look here: http://pear.php.net/manual/en/package.fileformats.spreadsheet-excel-writer.s preadsheet-excel-writer-format.setnumformat.php You can (re)format dates with the date() function: http://de.php.net/manual/en/function.date.php So to turn "YYYY-mm-dd HH:II:SS" into "dd.mm.yyyy hh:ii:ss": $date = '2004-19-11 17:42:00'; $newDate = date('d.m.Y H:i:s', strtotime($date)); Regards, Torsten

« previous php.pear.general (#15688) next »