Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/10/2003, 12:06
Avatar de barna_rasta
barna_rasta
 
Fecha de Ingreso: agosto-2003
Mensajes: 214
Antigüedad: 20 años, 7 meses
Puntos: 11
Prueba esto:

//Fecha actual *************************************
$segundos=strftime("%Y/%m/%d");
// Fecha formato DD/MM/YY***************************
$fechactual=strftime("%d/%m/%Y",strtotime($segundos));
// SOLO EL AÑO
$anyo=strftime("%Y",strtotime($segundos));