How to show date through php in this format : Friday, 05 October 2007

Discussion in 'PHP' started by FR3@K, Oct 5, 2007.

  1. #1
    could anyone please help me??
    i need to show date using php in this format : Friday, 05 October 2007 , using strftime function.
    i will really appreciate any kind of help.
    but remember , it should be php.
    thanks in advance for help.
     
    FR3@K, Oct 5, 2007 IP
  2. pixel_boost

    pixel_boost Peon

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    According to php.net manual:
    strftime("%A, %d %B %G");
     
    pixel_boost, Oct 5, 2007 IP
  3. FR3@K

    FR3@K Banned

    Messages:
    182
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    wait.. testing..
    will post the result in 5 minutes.


    Updated :-

    worked :D , thanks mate , thanks for help.
     
    FR3@K, Oct 5, 2007 IP
  4. james_r

    james_r Peon

    Messages:
    194
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    this is what I usually use:

    echo date('l\, d F Y');
     
    james_r, Oct 5, 2007 IP
  5. FR3@K

    FR3@K Banned

    Messages:
    182
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    well i used <?php echo strftime("%A, %d %B %G"); ?>
     
    FR3@K, Oct 5, 2007 IP