Jump to content

How would you...


rhyno

Recommended Posts

Those values are strings, and won't really compare. I would recommend working with timestamps

 

<?php
$_SESSION['contact_array']['meeting_date'] = strtotime('2/14/2008 1:00PM EST'); //This is a timestamp of 1203012000

if($_SESSION['contact_array']['meeting_date'] < time()){ //time() returns the current time as a timestamp
  //then no meeting;
}else {
  //proceed with the meeting
}
?>

Link to comment
https://forums.phpfreaks.com/topic/91128-how-would-you/#findComment-467045
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.