Posts by Wiatagan Paz • 1 point
1 post
-
-1
votes3
answers343
viewsA: How to check if the timestamp is today?
I do so: $dt = new DateTime(); $dt2 = new DateTime(); $dataAtual = $dt->getTimestamp(); $dt2->setTimestamp(145392039); if($dt->format('d') == $dt2->format('d')) { echo 'É hoje'; } else {…