You are here: Re: Formatting a date with php from a mysql table « PHP Programming Language « IT news, forums, messages
Re: Formatting a date with php from a mysql table

Posted by mantrid on 10/27/07 20:28

ok
I found it

echo date('d-m-Y', strtotime($selldatetime))

seems to work


"mantrid" <ian.dandav@virgin.net> wrote in message
news:4LMUi.269$ib1.161@newsfe3-win.ntli.net...
> Hello
> I have date and time in my mysql table in the form
> 2007-05-03 00:00:00
> which I have dispayed on my webpage using
> echo $selldatetime
> I want to know how I can display it in the form
> 03-05-2007
>
> Thanks
>
>

 

Navigation:

[Reply to this 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

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