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


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to