$timestamp = strtotime( $row['fecha' );$fecha = date( "Y-m-d", $timestamp );echo $fecha; // Ya la imprime bien como tu quieras.