I have a little function that shows latest activity, it grab timestamp in unix format from the db, and then it echo out with this line:
date(\"G:i:s j M -Y\
echo date("Y:m:d",strtotime("today")); echo date("Y:m:d",strtotime("yesterday"));