Incrementing days if day is a workday
<p>I need your help again.
This should be a function for php. I've got two dates. One is set by myDate and the other one is the date of today. I want to find out the number of days left to myDate, but saturday and sundy should be excluded. The result for this function would be 7...
How can I make it work?</p>

<p><pre><code>
&lt;?php
myDate = &quot;29.07.2010 &quot;</p>

<p>DaysTillmyDate = 0
iterate day to myDate {
 if (date/day is a weekday(Monday,Tuesday,Wednesday,Thursday, Friday))
   increment DaysTillmyDate by 1
}
?&gt;</pre></code></p>

<p>A hint or any help would be much appreciated.
Faili</p>
