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

