1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to edit Date Format into name?

Discussion in 'PHP & Perl' started by PirateX, Oct 19, 2013.

Tags:
  1. PirateX

    PirateX Newbie

    Joined:
    Oct 8, 2013
    Messages:
    17
    Likes Received:
    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>");
     
  2. prab1996

    prab1996 Elite Member

    Joined:
    Jan 8, 2013
    Messages:
    3,496
    Likes Received:
    2,027
    Occupation:
    your gf's <3 ♥♥♥♥
    Location:
    Prab1996.com
    Home Page:

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

    -=-
     
  3. PirateX

    PirateX Newbie

    Joined:
    Oct 8, 2013
    Messages:
    17
    Likes Received:
    0
    Why Are You Asking Mate?
     
  4. 69signals

    69signals Newbie

    Joined:
    Sep 1, 2013
    Messages:
    12
    Likes Received:
    1
    Occupation:
    Developer
    Location:
    New Delhi, India
    Home Page:
    Hey mate!

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