ok this no longer works, this is my code [code] function nixtime($unix) { if ($unix == "1129679173") { return "Never"; } else { $unix = $unix; $today = strtotime("today"); $yesterday = strtotime("yesterday"); $two = strtotime("2 days ago"); if ($unix < $today && $unix > $yesterday) { $visit = date('g:i a', $unix ); return "Today, $visit"; } if ($unix > $two && $unix < $yesterday) { $visit = date('g:i a', $unix ); return "Yesterday, $visit"; } else { $visit = date('n/j/y g:i a', $unix ); return $visit; } } } [/code] [a href=\"http://mikeroq.be/?x=forum\" target=\"_blank\"]http://mikeroq.be/?x=forum[/a] or anywhere else, it willl say yesterday for today, and today for yesterday and show incorrect times like today at 6:30am when its only 4:30am server time