Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2003022

Re: [PHP] date, "first of next month"? From: Bryan Koschmann - GKT (gktnews <email protected>)
Date: 02/26/03

On Wed, 26 Feb 2003, 1LT John W. Holmes wrote:

|You would think strtotime("first of next month") would work, but it doesn't.
|This does:
|
|$t = mktime(0,0,0,date('m')+1,1,date('Y'));
|
|Gives you timestamp of first day, next month. Format accordingly with
|date().

Thats great, worked perfectly! Thank you very much :)

Heres a tough one, is there such a say to now get the date of the first
weekday after that date?

Thanks again,

        Bryan

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