2010-07-03 6 views
0

Comment convertir l'horodatage php standard, par ex. 1278184362 dans ce format 2010-07-03 19:00:00?timespamp convert php

doit être exacte ...

Les idées les gars?

+1

PHP a un excellent [Manuel] (http://de3.php.net/manual/en/function.date.php) vous pouvez avoir un coup d'oeil. – Gordon

Répondre

1

Vous pouvez le faire comme ceci:

$timestamp = 1278184362; 

$newDate = Date("Y-m-d H:i:s", $timestamp);