How do I find date prior to another date in php
<p>I need to find <code>date x</code> such that it is <code>n working days</code> prior to <code>date y</code>.</p>

<p>I could use something like <code>date("Y-m-d",$def_date." -5 days");</code>, but in that case it wont take into consideration the weekend or off-date. Let's assume my working days would be Monday to Saturday, any idea how I can accomplish this?</p>
