Reply to Re: How to format at date field output

Your name:

Reply:


Posted by Jerry Stuckle on 07/25/06 13:46

Bob Sanderson wrote:
> I have a field in a database called DateRcvd. At present, it outputs in my
> report in the yyyy-mm-dd format. I would like it to display in the dd/mm/yy
> format. What is the easiest way to accomplish this?

Depends on the database., But most have a function to format the
default date to however you want. Check your database documentation.

Otherwise you could reformat it in the php code - use substr() or a
regex to get the year, month and day, then display them like you wish.

Personally I prefer the database function.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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