Re: Convert time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx 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

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux