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", $last_access)
Now i would like to replace the date (j M -Y) to Yesterday, and Today if the latest activity was within today, and same goes with Yesterday.
How can i do this?
1 Answer