I have a date in the format yyyy-mm-dd. How would I find out whether it was in the past or not using php?
Read the manual about the date functions. Use them to make a unix timestamp, and compare that to the current timestamp. If the current is larger, the date is in the past.
thanks
i found out how to do it. By making today's date yyyy-mm-dd date("Y-m-d") you can compare it with: If ($date<$currentdate) then blah
hi
sir pl sir i have two date. i want to compare these date at client side that first date less than or second date