Thanks...that did the trick very nicely!
i appreciate the help.
Ron
>From: Jeremy Schreckhise
>To: php-windows@lists.php.net
>Sent: 01/31/2005 12:56 PM
>You could also do:
>$daystosubtract = 3;
>$mydate =
>(date("m/d/y",mktime(0,0,0,date("m"),date("d")-$daystosubtract,date("Y"))
));
>
>
You could also do:
$daystosubtract = 3;
$mydate =
(date("m/d/y",mktime(0,0,0,date("m"),date("d")-$daystosubtract,date("Y";
Jeremy Schreckhise
"Jason Barnett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Ron Herhuth wrote:
> > I am trying to construct a function where
Ron Herhuth wrote:
I am trying to construct a function where I feed it a number such as "x"
it returns the date "x" days ago.
$format = 'l dS of F Y h:i:s A';
/** Check that "now" relative time is ok, instead of midnight */
echo date($format, strtotime("now")) . "\n";
/** If now resolves correctly