[thelist] Need some PHP Syntax help

Casey Crookston caseyc at IntelliSoftmn.com
Thu Apr 26 15:19:19 CDT 2007


Hi,

 

I am out of my element here, working on someone else's PHP project.

 

Assuming that $OrderDate is the date and time an order was placed, we
need to determine if right now is after or before 8:00 pm on the date
the order was placed.  

 

If (strtotime("now") > strtotime(date("m/d/Y 8:00 pm",
strtotime($OrderDate))))

{

  // the current time is after 8:00 pm on the date of the order

}

Else

{ 

 // the current time is before 8:00 pm on the date of the order

}

 

Is this right?  Thanks, 

 

Casey

 

 




More information about the thelist mailing list