.dsy:it.
Show 150 posts per page

.dsy:it. (http://www.dsy.it/forum/)
- Tech (http://www.dsy.it/forum/forumdisplay.php?forumid=189)
-- [PHP] Invertire data (http://www.dsy.it/forum/showthread.php?threadid=27730)


Posted by Teju on 19-10-2006 11:34:

[PHP] Invertire data

Ciao, se ho un DB contenente un campo con data in formato inglese, come posso metterla a video in formato italiano??

Grazie!

__________________
Teju.it - Una vita da raccontare


Posted by foolish on 19-10-2006 11:45:

che db stai usando?

__________________
The only way to discover the limits of the possible is to go beyond them into the impossible.
Arthur C. Clarke.


Posted by FabryProg on 19-10-2006 13:11:

si fa cosi'

date( 'd-m-Y', strtotime($myField) );

indipendentemente dal db


Posted by Teju on 19-10-2006 13:46:

Originally posted by FabryProg
si fa cosi'

date( 'd-m-Y', strtotime($myField) );

indipendentemente dal db

Gratias! :-D

__________________
Teju.it - Una vita da raccontare


Posted by foolish on 19-10-2006 14:04:

per comodità si possono usare delle funzioni a seconda del db per far ritornare la data nel formato voluto. indipendentemente dal linguaggio.

__________________
The only way to discover the limits of the possible is to go beyond them into the impossible.
Arthur C. Clarke.


Posted by Teju on 19-10-2006 14:09:

sì, ma io il DB nn posso modificarlo, devo mandare a video in PHP la data!
Grazie lo stesso!

Ciao ciao

__________________
Teju.it - Una vita da raccontare


All times are GMT. The time now is 20:18.
Show all 6 posts from this thread on one page

Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.