What is this? From this page you can use the Social Web links to save Determinar si es año bisiesto to a social bookmarking site, or the E-mail form to send a link via e-mail.

Social Web

E-mail

E-mail It
September 09, 2009

Determinar si es año bisiesto

Posted in: JavaScript

una pequeña función para determinar si es o no año bisiesto

//************************************************
// Determina si el año pasado como parámetro es o no bisiesto
//************************************************
function esBisiesto(anio)
{
 var BISIESTO;
  if(parseInt(anio)%4==0){
   if(parseInt(anio)%100==0){
    if(parseInt(anio)%400==0){
     BISIESTO=true;
    }
    else{
     BISIESTO=false;
    }
   }
   else{
    BISIESTO=true;
   }
  }
  else
  BISIESTO=false;
 
 return BISIESTO;
}

Return to: Determinar si es año bisiesto

//