 |
Teju |
| [PHP] Invertire data |
19-10-2006 11:34 |
|
 |
Teju |
:L'anti - anti-global!!:

Registered: Dec 2001
Posts: 1394 (0.16 al dì)
Location: Cassina Beach
Corso: Info
Anno: 3° ...circa...
Time Online: 5 Days, 8:26:51 [...]
Status: Offline
Edit | Report | IP: Logged |
[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
|
|
19-10-2006 11:34 |
|
|
|  |
 |
foolish |
| che db stai usando? ... |
19-10-2006 11:45 |
|
 |
foolish |
bleak

Registered: Oct 2003
Posts: 3585 (0.44 al dì)
Location:
Corso:
Anno:
Time Online: 36 Days, 7:28:56 [...]
Status: Offline
Edit | Report | IP: Logged |
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.
|
|
19-10-2006 11:45 |
|
|
|  |
 |
FabryProg |
| si fa cosi'
... |
19-10-2006 13:11 |
|
 |
FabryProg |
.consigliere.
Registered: Oct 2006
Posts: 116 (0.02 al dì)
Location: Novara
Corso: Informatica (Magistrale)
Anno: matricola magistrale?
Time Online: 11:09:01: [...]
Status: Offline
Edit | Report | IP: Logged |
si fa cosi'
date( 'd-m-Y', strtotime($myField) );
indipendentemente dal db
|
|
19-10-2006 13:11 |
|
|
|  |
 |
Teju |
| [QUOTE][i]Originally posted by FabryProg [/i]
... |
19-10-2006 13:46 |
|
 |
Teju |
:L'anti - anti-global!!:

Registered: Dec 2001
Posts: 1394 (0.16 al dì)
Location: Cassina Beach
Corso: Info
Anno: 3° ...circa...
Time Online: 5 Days, 8:26:51 [...]
Status: Offline
Edit | Report | IP: Logged |
Originally posted by FabryProg
si fa cosi'
date( 'd-m-Y', strtotime($myField) );
indipendentemente dal db
Gratias! 
__________________
Teju.it - Una vita da raccontare
|
|
19-10-2006 13:46 |
|
|
|  |
 |
foolish |
| per comodità si possono usare delle funzioni a se ... |
19-10-2006 14:04 |
|
 |
foolish |
bleak

Registered: Oct 2003
Posts: 3585 (0.44 al dì)
Location:
Corso:
Anno:
Time Online: 36 Days, 7:28:56 [...]
Status: Offline
Edit | Report | IP: Logged |
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.
|
|
19-10-2006 14:04 |
|
|
|  |
 |
Teju |
| sì, ma io il DB nn posso modificarlo, devo mandar ... |
19-10-2006 14:09 |
|
 |
Teju |
:L'anti - anti-global!!:

Registered: Dec 2001
Posts: 1394 (0.16 al dì)
Location: Cassina Beach
Corso: Info
Anno: 3° ...circa...
Time Online: 5 Days, 8:26:51 [...]
Status: Offline
Edit | Report | IP: Logged |
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
|
|
19-10-2006 14:09 |
|
|
|  |
 |
| All times are GMT. The time now is 13:00. |
|
|
 |
|
 |
|
|
|  |
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|