tags:

views:

16

answers:

1

How do I convert the standard php timestamp e.g. 1278184362 into this format 2010-07-03 19:00:00 ?

needs to be exact...

Any ideas guys?

+1  A: 

You could do it like this:

$timestamp = 1278184362;

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