Through Google and hacking away I have gotten this far:
<?php
$tomorrow = mktime(0, 0, 0, date("m") , date("d")+1, date("Y"));
$lastmonth = mktime(0, 0, 0, date("m")-1, date("d"), date("Y"));
$nextyear = mktime(0, 0, 0, date("m"), date("d"), date("Y")+1);
$today = mktime(0, 0, 0, date("m"), date("d"), date("Y"));
$firstday=01;
$td=date("d");
echo "<b>Today is ",date("l M.d",$today),"</b><br /><br />";
echo "<b>Tomorrow = ",date("l M.d",$tomorrow),"</b><br />";
echo "<b>Last Month = ",date("l M.d",$lastmonth),"</b><br />";
echo "<b>Next Year = ",date("l M.d, Y",$nextyear),"</b><br /><br />";
if (date ('l') == 'Friday')
{
echo "Today is Friday<br>n";
}
$time = time ();
for ($i = 0; $i < 7; $i++)
{
if (date ('l', $time += (60*60*24)) == 'Friday')
{
echo "Next Friday is on the ".date ("jS of F", $time), "<br/><br />";
break;
}
}
for ($x = 0; $x <30; $x++)
{
$newday=$td + $x;
if($newday < 30){
echo "Date:", date("l M.$newday",$today),"<br />";
}
}
?>
Can anybody point me in the right direction? I still ned to generate the right text date, and its making me nuts.