Forum Moderators: coopster

Message Too Old, No Replies

Retrieve time() stored in db

         

expert_21

10:26 pm on Jan 6, 2004 (gmt 0)

10+ Year Member



Hi, here's an example:

ID Time
-- ----
1 1073417668
2 1073468590

The column Time is based on time() function. So how can i retrieve the info stored in Time to a more readable format, like the date (eg. 06.01.2004). Thank you.

dcrombie

10:20 am on Jan 7, 2004 (gmt 0)



Use the PHP date [php.net] function.

coopster

4:01 pm on Jan 7, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



An example:

print date("d.m.Y", 1073417668);