Answer the question
In order to leave comments, you need to log in
Zend_Date
Can someone explain to me why this code produces the following result?
$d = new Zend_Date('2013-02-05 00:00:00', 'Ymd H:i:s');
print($d->get(Zend_Date::DATE_FULL));
Result:
Saturday, January 5, 2013
Answer the question
In order to leave comments, you need to log in
Probably because Zend's format differs from the standard PHP date/DateTime. m is minutes, not month.
const MINUTE = 'mm';
const MINUTE_SHORT = 'm';
const MONTH = 'MM';
const MONTH_SHORT = 'M';
No need to use ZD
Regular php tools are enough for all tasks
ZD is one of the most asshole components in ZF
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question