[PHP] Convert time

2005-03-18 Thread virtualsoftware
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

RE: [PHP] Convert time

2005-03-18 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
on Friday, March 18, 2005 12:10 PM said:

 Hi,

Hello virtualsoftware!

 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.

Take a look at: http://www.php.net/date

 I know is is very stupid from me that i've stored the date when a
 user register using the time() function. 

No it's not stupid. The date() function was created for just such an
occassion.

 Thank you very very much in advance for your help

You're welcome.


Chris.

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