Try:
<?php
require 'Zend/Date.php';
Zend_Date::setOptions(array('format' => 'php'));
// changed 66 to 06, and no repetition of date tokens
$date_input = new Zend_Date('06/03/2007','d/m/y');
$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;

I prefer

require 'Zend/Date.php';
$date_input = new Zend_Date('06/03/2007','dd/MM/YYYY');
echo $date_input->toString('MM-dd-YYYY');

;-)

P.S. .. and 5th: keep the docs in sync with the latest changes to SVN ;)

I thought that there is a time after Zend Framework... this does not mean to do some lyrics ;-)))

Greetings
Thomas
I18N Team Leader

Reply via email to