Re: Subtracting days from a date

From: Date: Wed, 26 Jul 2000 12:19:59 +0000
Subject: Re: Subtracting days from a date
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8279@lists.php.net to get a copy of this message
Hi, Look at http://www.php.net/manual/function.mktime.php Example 2. You need to parse your year-month-date into integers first, use strtok or ereg (one of the ereg examples covers this). Ciao, Andreas axbom wrote: > > Hi, I'm a newbie :) > > Is there an easy way to subtractring > x days from a date or do I have to > perform a work-around? > > e.g. I want the to subtract ten days > from 2000-07-05 (Y-m-d) and > end up with 2000-06-25. Tell > me there's an easy command for > this =) ? > > .p

« previous php.general (#8279) next »