On Wed, 26 Feb 2003, Philip Hallstrom wrote: | |Use the w option of date() and loop through adding 86400 to $t until you |get to a number between 1 and 5. | | w - day of the week, numeric, i.e. "0" (Sunday) to "6" (Saturday)
I may of gotten ahead of myself, but I tried it using if/else. Looks like this: $t = mktime(0,0,0,date('m')+1,1,date('Y')); $expdate = date("l, F jS Y", $t); $expdatenum = date("w", $t); if ($expdatenum == "6") { $rendate = date("l, F jS Y", strtotime("$expdate +2 days")); } else { $rendate = date("l, F jS Y", strtotime("$expdate +1 day")); } I'm not sure if it would be more inefficient or what, but it seems to work (so far). I'm not too worried about efficiency because it will only run once a month. Thanks to everyone who replied! I appreciate all the help! Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php