Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/01/2011, 10:19
undi41
 
Fecha de Ingreso: octubre-2010
Mensajes: 1
Antigüedad: 13 años, 5 meses
Puntos: 0
determinar la cantidad de fechas

NECESITO AYUDA PARA DETERMINAR EL RANGO DE FEHAS QUE EXISTEN ENTRE UNA FECHA INICIAL(FECHAI) Y UNA FINAL(FECHA2) NECESITO DETERMINAR CUANTAS FECHAS EXISTEN ENTRE ESTE RANGO POR FAVOR AYUDEN ME




string fechai="12/05/2010";
//string fecha2 ="12/12/2010";
DateTime fechaCominezo=Convert.ToDateTime(fechai);

//DateTime fechaFin = Convert.ToDateTime(fecha2);
//fechai = DateTime.Parse(fechai);
//fecha2 = DateTime.Parse(fechaFin);
int count = 0;
while (fechaComienzo < fechaFin)
{
fechaComienzo = fechaComienzo.AddDays(15);

count++;

}
return count;