Check if timestamp is today

后端 未结 7 944
傲寒
傲寒 2020-12-29 19:28

I\'ve got a timestamp in the following format (Which can easily be changed thanks to the beauties of PHP!).

2011-02-12 14:44:00

相关标签:
7条回答
  • 2020-12-29 20:14

    I think:

    date('Ymd') == date('Ymd', strtotime($timestamp))
    
    0 讨论(0)
提交回复
热议问题