Convert unix timestamp to date('Y-m-d H:i:s')?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sugapablo

    Convert unix timestamp to date('Y-m-d H:i:s')?

    How do you convert a unix timestamp to date('Y-m-d H:i:s')?
    Last edited by Niheel; Jul 22 '14, 07:35 PM.
  • Chris Hope

    #2
    Re: Convert unix timestamp to date('Y-m-d H:i:s')?

    Sugapablo wrote:
    [color=blue]
    > How do you convert a unix timestamp to date('Y-m-d H:i:s')?[/color]

    date('Y-m-d H:i:s', $timestamp);

    Refer to the manual at http://www.php.net/date
    Last edited by Niheel; Jul 22 '14, 07:35 PM.

    Comment

    Working...