Is your $mysqlDate, that come from the database table, 'date' or 'datetime'?
If your bd table is defined with 'date', it will not store the time; so you must use 'datetime' instead, in your SQL.

Regards,
Paulo


Mathew Byrne escreveu:
I seem to having issues with the following code:


Zend_Date::setOptions(array ('format_type' => 'php'));

$date = new Zend_Date ($mysqlDate);
echo $date->toString ('F j, Y, g:i a');


Now if $mysqlDate is equal to '2007-07-25 13:55:49' then the output is 'July 25, 2007, 12:00 AM'.

The date component is clearly correct, but Zend_Date seems to have difficulty with the time part. Is this something that Zend_Date is not designed to do? Can anyone suggest another transparent method for formatting these dates?

Reply via email to