I have two dates i want to compare between two of them are they at the same time (year/month/day/hour) i get time from database and the other time from user input i have used
$checkdate = strtotime($meetingDate);
$dateconflicts = strtotime($_SESSION['date']);
if ($checkdate == $dateconflicts ) {
$msg = "<div class='alert alert-danger'>there's conflicts !</div>";
}
the thing is it doesn't work like this i don't know why.