I decided to mess with this just to see what was involved. It wasn't that complicated but it took more steps than I originally anticipated. Someone else could probably find a more efficient way but since no one suggested a solution, try this:
Output looks like this: Wednesday, March 11, 2009
<?php
$mon = date("m");
$year = date("y");
// find the first weds of this month which will be within 7 days
for ($dayofmonth=1; $dayofmonth<=7; $dayofmonth++) {
$dateArr = getdate(mktime(0, 0, 0, $mon, $dayofmonth, $year));
if ( !strcmp($dateArr["weekday"], "Wednesday") ) {
// advance to following wednesday
$dayofmonth += 7;
break;
}
}
$secWeds = date("l, F d, Y", mktime(0, 0, 0, $mon, $dayofmonth, $year));
print($secWeds);
?>