Convert Date

Discussion in 'PHP' started by sastro, Sep 17, 2008.

  1. #1
    is it possible to convert :

    Wed, 17 Sep 2008 19:46:11 into 2008-09-17 19:46:11 (standard mysql datetime)


    thx
     
    sastro, Sep 17, 2008 IP
  2. lui2603

    lui2603 Peon

    Messages:
    729
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #2
    lui2603, Sep 17, 2008 IP
  3. sastro

    sastro Well-Known Member

    Messages:
    214
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #3
    Yes, got it.

    <?php
    echo date('Y-m-d H:i:s',strtotime('Wed, 17 Sep 2008 19:46:11'));
    ?>

    Thx.

     
    sastro, Sep 17, 2008 IP