Jump to content

[SOLVED] time question


ngreenwood6

Recommended Posts

I have got the date formatted but now I cannot get the time with the time() function from the database. I have this code:

 

echo time("h:i:s", $row['date']);

 

but it is just displaying it as a timestamp. please help.

 

<?php
//time() should be date()

echo date("h:i:s", $row['date']);
?>

Link to comment
https://forums.phpfreaks.com/topic/135680-solved-time-question/#findComment-706906
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.