How to edit Date Format into name?

PirateX

Newbie
Joined
Oct 8, 2013
Messages
17
Reaction score
0
Hello
We have a torrent website. Whenever some new torrent is uploaded it show date Format as D:M:Y
But instead of that i want to show it "Today" "Yesterday" Like that for these two days.
How can i do that ? Here script that shows it.

PHP:
print("<td class='ttable_col$x' align='center'>".date("d-m-Y", utc_to_tz_time($row['added']))."</td>");
 
Hello
We have a torrent website. Whenever some new torrent is uploaded it show date Format as D:M:Y
But instead of that i want to show it "Today" "Yesterday" Like that for these two days.
How can i do that ? Here script that shows it.

PHP:
print("<td class='ttable_col$x' align='center'>".date("d-m-Y", utc_to_tz_time($row['added']))."</td>");


are you owner of http://www.piratex.us/ ?

-=-
 
Hey mate!

You can do this with the help of jQuery using the Timeago plugin.
Google for the plugin.
 
Back
Top