PDA

View Full Version : if dateline NOT greater than TODAY?


stryka
12-19-2003, 05:49 PM
What is the PHP if i want to create a logic that finds if the stored DATELINE value is older than 7days... when compared to the current date...

filburt1
12-19-2003, 06:21 PM
Assuming you mean exactly seven days or older (i.e., not seven days starting at midnight today):

if ($dateline < time() - (60 * 60 * 24 * 7))

60 seconds per minute, 60 minutes per hour, 24 hours per day, 7 days.