PHP Zend date format

后端 未结 6 1622
粉色の甜心
粉色の甜心 2021-02-19 08:12

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

6条回答
  •  萌比男神i
    2021-02-19 08:44

    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

提交回复
热议问题