strtotime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux