I need help Select every other Wednesday starting on 5/2/12. This code below selects every other Wednesday starting on the week it currently is. But i need to set the beginning
If you have PHP 5.2.0 or newer, you can do it easily this way:
$date = new DateTime('2006-05-02'); for ($i=0; $i<10; $i++) { echo $date->format('m-d-Y').''.PHP_EOL; $date->modify('+1 week'); }