Skip to content
Advertisement

Can I make $date = date(“Y-m-d h:i:sa”); to a int value so that I can compare it to present date? [closed]

Example I have a date “2021-04-14 02:26:05am” and I want to select data that inserted after that date. Hope someone can answer my question.

Advertisement

Answer

use strotime(“2021-04-14 02:26:05am”)

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement