Reply to Re: Convert time

Your name:

Reply:


Posted by Jim Plush on 03/19/05 01:14

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация