I\'ve got a timestamp in the following format (Which can easily be changed thanks to the beauties of PHP!).
2011-02-12 14:44:00
$offset = date('Z'); //timezone offset in seconds if (floor(($UNIX_TIMESTAMP + $offset) / 86400) == floor((mktime(0,0,0) + $offset) / 86400)){ echo "today"; }