Re: Convert time
| From: | Jim Plush | Date: | Fri, 18 Mar 2005 23:14:07 +0000 |
| Subject: | Re: Convert time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211079@lists.php.net to get a copy of this message | ||
try something like
echo date("Y, m, d, g, i, s", $timevalue);
thats based on your example or you can do
echo date("m/d/Y g:i s", $timevalue);
which would show something like
05/19/2005 5:45 23
Jim's PHP Weblog
www.litfuel.net/plush
virtualsoftware@gmail.com wrote:
Hi, I have a database where i store the username and date when he registered. The time when he registered is using the time() function. I want to display the date he registered in this format: year, month, day, hour, minute, second. Please somebody tell me how can i do that. I know is is very stupid from me that i've stored the date when a user register using the time() function. Thank you very very much in advance for your help