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
Date input
Moderator: General Moderators
Re: Date input
Code: Select all
if($date1 > $date2)
{
}
else
{
}