ZF-7719: Zend_Date change default output format
Description
I miss some functionality like Zend_Date::setDefaultFormat('mm.YY'); or Zend_Date::setOption('defaultOutput', 'mm.YY'); that will change the default output format for __toString() etc application wide for any instanciated Zend_Date.
Comments
Posted by Robert Basic (robertbasic) on 2009-11-20T13:25:41.000+0000
Per the documentation (and the code) there's a toString() method, which accepts the date format as it's first parameter: http://framework.zend.com/manual/en/…
So this could be easily achieved as: