Re: Get timestamp?

From: Date: Wed, 25 Jan 2006 20:17:25 +0000
Subject: Re: Get timestamp?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-229265@lists.php.net to get a copy of this message
Jay Paulson wrote:
How would I go about getting the timestamp of a day of the week from 7 weeks
ago? $lastSunday = strtotime("last Sunday"); $Sunday7Weeks = $lastSunday - ???;
$lastsunday = strtotime("last Sunday"); $sunday7weeks = $lastsunday - (86400 * 49); // 7 weeks = 49 days Test: echo 'Last Sunday\'s date was '.date("m/d/y",$lastsunday); echo '<br>7 Weeks prior to Last Sunday, the date was '.date("m/d/y",$sunday7weeks); -- Max Schwanekamp http://www.neptunewebworks.com/

« previous php.general (#229265) next »