Código PHP:
Ver original
$consulta1t2="Select * from (select * from xxxxxx order by fecha desc ) where rownum = 1 and estacion =10"; $stid31t2 = OCIParse($conn, $consulta1t2); OCIExecute($stid31t2, OCI_DEFAULT); $produccion_1dia_nbt2 = oci_fetch_array($stid31t2); $fecha= $produccion_1dia_nbt2['FECHA'];
Pero cuando imprimo la variable fecha me la muestra de la sig. manera:
04-APR-14 y no como esta en la BD : 3/6/2012 5:00:15 PM
me podrian ayudar por favor
