Issue Type: Improvement Created: 2009-08-29T03:18:32.000+0000 Last Updated: 2012-11-20T21:37:46.000+0000 Status: Open Fix version(s): Reporter: Saman Darougheh (excuvator) Assignee: None Tags: - Zend_Date
Related issues: - ZF-8937
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.
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:
<pre class="highlight"> define(MY_DATE_FORMAT, 'Y-m-d H:i:s'); echo $date->toString(MY_DATE_FORMAT);
Have you found an issue?
See the Overview section for more details.