Re: date, "first of next month"?
| From: | Brent Baisley | Date: | Wed, 26 Feb 2003 20:44:27 +0000 |
| Subject: | Re: date, "first of next month"? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137306@lists.php.net to get a copy of this message | ||
Use the mktime function:
mktime (0,0,0,(date("n",$date)+1),1,date("Y",$date))
Where the variable $date contains whatever is the starting date. The function handles a December date just fine also.
On Wednesday, February 26, 2003, at 03:28 PM, Bryan Koschmann - GKT wrote:
Hello, Does anyone know a way to do this easily? I have a script that pretty much says "this is due on the first of next month" but I would like it to actually use the correct date. Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577