Hi Mike, If you're pulling dates from MySQL, why not use DATE_FORMAT()?
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function-date-format Hope that helps, -Matt > I've been trying to use zend_date to rearrange mysql dates and am having > problems. > > when i try the examples from the manual > $date = new Zend_Date(); > print $date; > or > $date = new Zend_Date(); > print $date->get(); > > I get Warning: Missing argument 1 for Zend_Date::__construct(), called > in /home/applications/controllers/TestController.php on line 13 and > defined in /home/library/Zend/Date.php on line 147 > > I found an example of rearranging a date from the mailing list > $mydate is a mysql date 2007-01-31 > > $date = new Zend_Date($myDate, Zend_Date::ISO_8601); > $date->toString('dd.MM.yyyy HH:mm:ss'); > > when i try this i get the date that is stored in the mysql but the > toString() as no effect on the output. Changing any of the MM.yyyy does > not change the output. > > All I want to do is change 2007-01-31 to 01-31-2007. > > Thanks in advance for any help, > Mike