Forum Moderators: coopster
then you convert the current date to a unix timestamp:
$d9 = strtotime('-90 days',time()); // The second parameter isn't necessary if you're working with current time, included for illustration
If the post timestamp is less than the '90 days ago' timestamp, the post is too old:
if($check_date < $d9)
echo "Post is too old: $post_date<br>\n";
else
echo "Ok you can edit: $post_date<br>\n";