Page 1 of 1

MySQL date display in php ...

Posted: Wed Oct 03, 2007 3:29 pm
by jmueller0823
The date/time data looks like this: 1175114705

How do I get that to display properly?

Thanks!

Posted: Wed Oct 03, 2007 3:36 pm
by feyd

Posted: Wed Oct 03, 2007 4:09 pm
by Josh1billion
Use date(), with the second parameter being that timestamp (1175114705). And the first parameter, as always, is the format.

Example:

Code: Select all

$new_date = date("m/d/y H:i:s", 1175114705);