![]() |
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)
[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
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.
si fa cosi'
date( 'd-m-Y', strtotime($myField) );
indipendentemente dal db
Originally posted by FabryProg
si fa cosi'
date( 'd-m-Y', strtotime($myField) );
indipendentemente dal db
__________________
Teju.it - Una vita da raccontare
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.
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.