Date() Get 3 Work Days ago?
<p>I wish to get a php date for three working days ago.</p>

<p>I've found numerous examples for getting dates by all sorts of textual methods, but the closest I found was <a href="http://stackoverflow.com/questions/12855585/how-to-check-if-a-date-is-three-days-before-today">this one</a>, but it returns three dates (not one date, three days ago) and requires a get_holidays function for which the code was not provided.</p>

<p>Can anyone help with the php code to return three working days before today?</p>

<p>This works, but doesn't account for week/weekend days:</p>

<pre><code>date('Y-m-d', strtotime('-3 days')); // returns 2012-12-01
</code></pre>

<p>This doesn't work, but is what I would like to see:</p>

<pre><code>date('Y-m-d', strtotime('four week days ago'));
</code></pre>

<p>In fact, the above returns '1969-12-31'.  As does this: <code>strtotime('-4 week days')</code> Go figger. </p>
