Select date from my db without seconds using PHP MySql

后端 未结 6 1932
生来不讨喜
生来不讨喜 2020-12-20 06:25

Well, I save the date\'s with minutes and second in my database.

And I want to check if the date from my db = to date today.

I read about this,

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-20 06:49

    SELECT DATE_FORMAT(date_created, '%Y/%m/%d') FROM sometable

提交回复
热议问题