Hello all,
I'm having a problem comparing some dates..
First off, wouldn't you think that
10-09-2008
is the exact same as
10-9-08
Well it doesn't come out that way for me
I'm taking similar values and using
strtotime(); function..
And I can't get it to read those values as the same.
Any suggestions?
code:
$Time1="10-9-08";
$Time2="10-09-2008";
$FTime1=strtotime($Time1);
$FTime2=strtotime($Time2);
echo("<script>alert('".$FTime1." - ".$FTime2."');</script>");
if($FTime1==$Ftime2)
{
echo("<script>alert('SUCCESS!');</script>");
}
else
{
echo("<script>alert('FAIL!');</script>");
}