[quote=Elvenesian]Ciao a tutti quelli che leggono questo forum intanto .
Io ho un problema che mi sta facendo diventare matto , ho ricercato una soluzione dappertutto però non riesco ad andarne fuori dalla mia situazione .
Io ho un campo timestamp all'interno del database e fin qui tutto ok
vado a ciclare il tutto
PENSO CHE IL TUO QUESITO, SE NON RISOLTO, LO SIA
Io adesso come posso fare a trasformare la variabile gin nel formato
GG/MM/AAAA ORE-MINUTI-SECONDI ?
$data_g = $gin[8].$gin[9];
$data_m = $gin[5].$gin[6];
$data_a = $gin[0].$gin[1].$gin[2].$gin[3];
$ore = $gin[11].$gin[12];
$min = $gin[14].$gin[15];
$sec = $gin[17].$gin[18];
$gin = $data_g.'-'.$data_m.'-'.$data_a.' | '.$ore.':'.$min.':'.$sec;
COSI' OTTERRAI gg-mm-aaaa ore:min:sec. SE NON TI VA BENE CAMBIA ALL'INTERNO DELL'ULTIMA DICHIARAZIONE DELLA VARIABILE $gin o il trattino - oppure i due punti :.
Spero ti sia stato di aiuto
CIAO