Jump to content

3rd Monday of september


Mateobus

Recommended Posts

Use the strtotime() function:

<?php
echo '<br>The third Monday in September, 2007 is ' . date('l, F jS, Y',strtotime('third monday',strtotime('2007-09-01')));
?>

 

Note: in my testing of this, it got the 3rd Monday of September 2008 wrong, but other years were right.

 

Ken

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.