Re: date, "first of next month"?
| From: | Chris Shiflett | Date: | Wed, 26 Feb 2003 20:42:48 +0000 |
| Subject: | Re: date, "first of next month"? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137305@lists.php.net to get a copy of this message | ||
--- Bryan Koschmann - GKT <gktnews@gktech.net> wrote:
> 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.
Well, you need:
1. The day of the month, which is always going to be 1 (the first).
2. The month, which is always the current month + 1 unless the current month is
12.
3. The year, which is always the current year unless the current month is 12.
Chris