View Single Post
  #10 (permalink)  
Old 04-02-2008, 11:01 AM
loloziberlo loloziberlo is offline
Junior Member
 
Join Date: Jun 2007
Location: Barcelona
Posts: 8
Default

Quote:
Originally Posted by murugesanme View Post
I have used Data class and found some mismatch of date usage. How to solve this?

in pHP: date("Y-m-d"): gives 2008-02-23
in zf : $date->toString("Y-m-d"); give 2008-i-23 like that. Time also coming like that . how to solve this and how to take the time 05:25:04 and date 2008-02-25?

- mugesh
Letters used by PHP in date() are different than the ones used by ZF.
use $date->get('YYYY-MM-dd HH:mm:ss') to show both date and time, or $date->get('YYYY-MM-dd') to show date only.
__________________
------------------
Loris Candylaftis
Reply With Quote