The date/time data looks like this: 1175114705
How do I get that to display properly?
Thanks!
MySQL date display in php ...
Moderator: General Moderators
-
jmueller0823
- Forum Commoner
- Posts: 37
- Joined: Tue Apr 20, 2004 9:06 pm
- Josh1billion
- Forum Contributor
- Posts: 316
- Joined: Tue Sep 11, 2007 3:25 pm
Use date(), with the second parameter being that timestamp (1175114705). And the first parameter, as always, is the format.
Example:
Example:
Code: Select all
$new_date = date("m/d/y H:i:s", 1175114705);