how do i evaluate date in php?

sandy360

New member
Hi, so here's what I'm trying to do:

Get $datetoday and then use this to compare it to $mysetdate.
So when $datetoday is not later than $mysetdate, I can do my computations
How will this look like using if(){} in PHP?

if ($mysetdate < $datetoday){}

is this right?
btw..this is the date format that i am using: 'yyyy-mm-dd'
 
Back
Top