Foros del Web » Programación para mayores de 30 ;) » C/C++ »

determinar la cantidad de fechas

Estas en el tema de determinar la cantidad de fechas en el foro de C/C++ en Foros del Web. 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 ...
  #1 (permalink)  
Antiguo 07/01/2011, 10:19
 
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;

Etiquetas: cantidad, determinar, fechas
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:57.