How do I detect the date of the user through php
?
That is, I know how to detect the date, but make the comparison with the date of the server, so it does not get right due to the different time zones.
I leave below my code:
<?PHP
$current = date("d/m");
$date = "14/02";
if ($current == $date){
echo “qualquer coisa”;
}
?>