I want to input a timestamp in below format to the database.
yyyy-mm-dd hh:mm:ss
How can I get in above format?
When I
this is i did it : Zend_Date::now->toString('dd-MM-yyyy HH:mm:ss') output from this format is "24-03-2012 13:02:01" and you can modified your date format
Zend_Date::now->toString('dd-MM-yyyy HH:mm:ss')