On request of someone in the MT forums, I put together a small php script that displays a different word (i.e. Today) depending on the date stamp of your server. This could be easily modified for any blogging software – this is pointed towards MT.
Here's the basics: If the day is today, display Today. If the day is 1 day ago, display Yesterday. Otherwise, show the Day of the Week.
<?
$today = date("m.d.Y");
$yesterday = date("m.d.Y", strtotime("-1 day"));
$mtdate = "<$MTEntryDate format="%m.%d.%Y"$>";
if ($mtdate==$today) {
echo "Today";
}
elseif ($mtdate==$yesterday) {
echo "Yesterday";
}
else {
echo("<$MTEntryDate format="%A"$>");
}
?>
Enjoy! Its working on my journal right now.