Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Filipe Souza #1
Data no Formato Brasil em PHP
Tenho um sistema onde as datas j? foram cadastradas e preciso que me retorne ao
inv?s de 2005/03/23 , retorne 23/03/2005.
Algu?m sabe como posso exibir uma data no formato brasileiro?
Uso o Dreamweaver MX e PHP + MYSQL
Valeu!!!
Filipe Souza Guest
-
Linking data, searching data, and format the data file
I'm sorta new to flash and integrating data and components...I'm usu. an interface designer. I'm trying to link a combo box to a file doesn't... -
New Forum / Brasil
Amigos(as), Gostaria de informar que estamos criando um Forum sobre Flashcom totalmente em português Este Fórum é destinado a programadores... -
[OFF] Brasil no fórum
Só pra saber: tem algum brasileiro aqui além de mim? Quem for do Brasil dá um salve! Everybody who don't speak portuguese, ignore this post. ... -
Display data from database in a scrollable data grid on an ASP Page
Hi All, I want to display data from database in a scrollable data grid on an ASP Page. I want to use it for entering data also. Should i have to... -
abnormal program termination with dynamic data, but not with fixed data
hi everyone. I am stumped! I have code that is part of a simple persistent object manager. The system takes an object, builds an update... -
Alexandro Colorado #2
Re: Data no Formato Brasil em PHP
On Tue, 29 Mar 2005 13:05:57 +0000 (UTC), Filipe Souza
<webforumsuser@macromedia.com> wrote:
Hi Filipe, You might want to check out our PHAKT implementation where it> Tenho um sistema onde as datas j? foram cadastradas e preciso que me
> retorne ao
> inv?s de 2005/03/23 , retorne 23/03/2005.
>
> Algu?m sabe como posso exibir uma data no formato brasileiro?
>
> Uso o Dreamweaver MX e PHP + MYSQL
>
> Valeu!!!
>
>
allows you localized the dates for the MySQL + PHP.
[url]http://www.interaktonline.com/Products/Free-Products/PHAkt/Overview/[/url]
--
Alexandro Colorado
------------------------------
Support Engineer
InterAKT Online
[url]http://www.interaktonline.com[/url]
Tel: 40(21) 312.5312
Alexandro Colorado Guest
-
gareth #3
Re: Data no Formato Brasil em PHP
If you have the field in the database in datetime format in the MySQL
database, use the UNIX_TIMESTAMP command to convert it into a UNIX timestamp
eg SELECT UNIX_TIMESTAMP(dateField) AS myDate FROM table
Then use the PHP date() command to convert it into the correct format eg
date("d/m/Y",$recordset_name['dateField']);
Alternatively, pull the date from the database as normal, use the PHP
explode() command to split the date into the array by the /. You can then
rearrange the parts in the correct order.
--
Gareth - TMM Dreamweaver
[url]http://www.dreamweavermxsupport.com/[/url]
[url]http://www.garethdp.com/[/url]
PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
[url]http://www.phploginsuite.co.uk/[/url]
Co-Author: Dreamweaver MX: Instant Troubleshooter - Apress
Co-Author: Practical Intranet Development - Apress
Co-Author: Dreamweaver MX: Advanced PHP Web Development - Apress
Co-Author: Dreamweaver MX: PHP Web Development - Wrox
gareth Guest



Reply With Quote

