php-general | 2003022
Date: 02/26/03
- Next message: Andy Crain: "[PHP] question on preg_replace()"
- Previous message: 1LT John W. Holmes: "Re: [PHP] Deleting a page after viewing it"
- In reply to: 1LT John W. Holmes: "Re: [PHP] date, "first of next month"?"
- Next in thread: Philip Hallstrom: "[PHP] Re: date, "first of next month"?"
- Reply: Philip Hallstrom: "[PHP] Re: date, "first of next month"?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Andy Crain: "[PHP] question on preg_replace()"
- Previous message: 1LT John W. Holmes: "Re: [PHP] Deleting a page after viewing it"
- In reply to: 1LT John W. Holmes: "Re: [PHP] date, "first of next month"?"
- Next in thread: Philip Hallstrom: "[PHP] Re: date, "first of next month"?"
- Reply: Philip Hallstrom: "[PHP] Re: date, "first of next month"?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

