Help removing weekend from calendar script
Posted: Tue Feb 23, 2010 2:44 pm
I could really do with some help in removing Saturday and Sundays from a weekend script. Basically a friend gave me some code that would output monday to sunday, but i dont need saturday and sunday, but i cant find a way either not to show them.
The script basically show me 2 weeks ahead from the day im on. so right now it would show me from Tuesday to Tuesday in 2 weeks.
code i have:
Above code print out monday tuesday wednesday thursday friday saturday sunday.
Can anyone help me to to get rid of saturday and sunday ??
Rippie
The script basically show me 2 weeks ahead from the day im on. so right now it would show me from Tuesday to Tuesday in 2 weeks.
code i have:
Code: Select all
#create table headers
function createTableHeaders($value, $value1, $value2) {
echo "<tr>";
$dV = $value2;
for ($i = $value; $i < $value1; $i++) {
echo "<th>".date('D dS M', time()+$dV)."</th>";
$dV = $dV + 86400;
}
echo "</tr>";
}Can anyone help me to to get rid of saturday and sunday ??
Rippie