Jump to content

Help With A Date Function


refiking

Recommended Posts

I am trying to check if the $biddate has already passed.  The bid date is always today's date at 2:00 PM.  What do I need to change here:

 

$thetime = date("m/d/y h:i A");
$bidtime = date("m/d/y").' 02:00 PM';
if($thetime > $bidtime){
echo 'it is';
}
echo $thetime . '<br>' . $bidtime;

Link to comment
https://forums.phpfreaks.com/topic/193089-help-with-a-date-function/
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.