PHP date and time, easiest way to do?

Discussion in 'PHP' started by toycat, Dec 19, 2009.

  1. #1
    Ok, I need the easiest way possible to have a thing on my site that says Current Server time: [time] [date]
    what is the easiest method for that? I also need it to be in GMT
     
    toycat, Dec 19, 2009 IP
  2. astkboy2008

    astkboy2008 Peon

    Messages:
    211
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    see my method
    echo date(DATE_RFC822,$_SERVER["REQUEST_TIME"]);
    PHP:
     
    astkboy2008, Dec 19, 2009 IP
  3. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #3
    <?php
    print "Current Server time: ".date("[H:i] [d/m/Y]");
    ?>
     
    crivion, Dec 19, 2009 IP