Ah!  that seem nicer when just using the script ($month+1)...

"Cpt John W. Holmes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> From: "Nicholas Robinson" <[EMAIL PROTECTED]>
>
> > The 'usual' trick is to set the date to the first day of the month after
> the
> > one you want and then subtract one day.
>
> Along those same lines, this works:
>
>
> <?php
>
> $month = 12;
> $year = 2003;
>
> $last_day_of_month = mktime(12,0,0,$month+1,0,$year);
>
> echo date('m/d/Y',$last_day_of_month);
>
> ?>
>
> ---John Holmes...
>



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

Reply via email to