strtotime

From: Date: Sun, 10 Feb 2008 11:46:09 +0000
Subject: strtotime
Groups: php.general 
Request: Send a blank email to php-general+get-269021@lists.php.net to get a copy of this message
I am trying to calculate what was the date 18 months ago. When I give the command: $18_months_ago = strtotime("-18 months"); It comes back with: Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE How would you calculate 18 months ago from today? Ron

« previous php.general (#269021) next »