Hy,

I have a date (not correct) declared this way:

<?
$dateInput = new Zend_Date('66/03/2007','dd/mm/yyy');
$month  = $date_input->get(Zend_Date::MONTH);
$day      = $date_input->get(Zend_Date::DAY);
$year     = $date_input->get(Zend_Date::YEAR_8601);
echo $month.'-'.$day.'-'.$year;
?>

my controller return 08-28-71

Is it the wanted behavior or is this a bug? It shouldn't return some error
"date is not correct "?
(zf 0.8)

In my opinion this could never work...

Where ever you have declared $date_input is not visible within your example.
You declared a $dateInput object and then you call a $date_input.
Seems that you have forgotten some lines in your example.

Greetings
Thomas
I18N Team Leader

Reply via email to