Hi guys,
Thanks for your suggestions.. Actually, I am on right tracj wrt dates.
I made a mistake in the way I stored them to my DB. I stored them as:
insert into DATE_TABLE values My_Date = $aDate;
The right method is:
insert into DATE_TABLE values My_Date = "'".$aDate."'";
Now - They are stored correctly..!
I have one more doubt.. How do I check if the date is lesser or equal to today's date:
I had a code like this: ($aDate is stored in this format - 12/02/2002 - mm/dd/yyyy format)
if ($aDate <= date('m/d/Y'))
echo "Correct date";
else
echo "Incorrect date";
Even if I give the $aDate value lesser or equal to the current date, I get incorrect date. Why?