Issues

ZF-5281: Date conversion error ->toString('YYYY')

Description


$nn = new Zend_Date ( '2008-12-22', Zend_Date::DATES );
    
$nn->addDay ( 9 ); //use 7-9

print "toString ( 'YYYY-MM-dd' ): " . $nn->toString ( 'YYYY-MM-dd' )."
". "get ( Zend_Date::DATES): " . $nn->get ( Zend_Date::DATES)."
". "toString ( 'yyyy-MM-dd' ): " . $nn->toString ( 'yyyy-MM-dd' );

it return: toString ( 'YYYY-MM-dd' ): 200{color:red}9{color}-12-31 get ( Zend_Date::DATES): 2008-12-31 toString ( 'yyyy-MM-dd' ): 2008-12-31

Comments

Please see the FAQ on internationalization (last item).

Or review the manual more closely.