Page 1 of 1

Date input

Posted: Fri Apr 01, 2011 10:53 pm
by stribor
I would like to compare 2 dates to see if first date comes before the second. My input is in this string in form xx-xx-yyyy. If i have 2 dates like this is there function to compare them to see which date comes first. Any suggestion would be great

Thank you

Re: Date input

Posted: Fri Apr 01, 2011 11:03 pm
by fugix

Code: Select all

if($date1 > $date2)
{

}
else
{

}