note 72293 deleted from ref.ldap by nlopess
| From: | nlopess@php.net | Date: | Thu, 11 Jan 2007 22:37:32 +0000 |
| Subject: | note 72293 deleted from ref.ldap by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121567@lists.php.net to get a copy of this message | ||
Note Submitter: Urcothebest
----
uso de atributo whencreated y whenchanged
//Función para obtener la fecha de ingreso y fecha de última modificación a un registro en
el directorio
echo "<BR><B>Fecha de Ingreso a Directorio:
</B>".retornar_cadenas_fecha($info[$i]["whencreated"][0]);
echo "<BR><B>Fecha ultima modificación al Registro:
</B>".retornar_cadenas_fecha($info[$i]["whenchanged"][0]);
/*Retornar Fechas*/
function retornar_cadenas_fecha($cadena=""){
$array_fecha = array(substr($cadena,5,2),substr($cadena,6,2),substr($cadena,0,4));
$fecha = implode("/",($array_fecha));
return $fecha;
}//end function