Re: 9 Months Ago

From: Date: Sun, 21 Mar 2004 15:56:50 +0000
Subject: Re: 9 Months Ago
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181084@lists.php.net to get a copy of this message
Jeff Oien wrote:
When I do this: $lastmonth = mktime(0, 0, 0, date("m")-9, date("d"), date("Y"));
this will not work most of the year, if current month is August or less, the month value will be negative. Use strtotime('-9 months') instead.

« previous php.general (#181084) next »