I want the coding to compare between two date
If date one exceed date two then anything..
compare two date
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Code: Select all
if($date1 > $date2)
{
// $date1 "exceeds" $date2
}I believe the dates would have to be timestamps before you could compare them. If they're not, use strtotime() on them and then compare
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.