Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/10/2006, 14:04
Avatar de shumito
shumito
 
Fecha de Ingreso: mayo-2006
Mensajes: 248
Antigüedad: 18 años
Puntos: 0
No me funciona me reclama por el IsDate y por el strFecha ojo estoy programando en C#
la deje como sigue
private bool Fecha_Correcta(string Fecha)
{
bool bolCorrecta;
string[] strFecha = Fecha.Split('/');
if (strFecha.Length < 3)
{
bolCorrecta = false;
}
else if (!(IsDate(strFecha(0) + "-" + strFecha(1) + "-" + strFecha(2))))
{
bolCorrecta = false;
}
else
{
bolCorrecta = true;
}
return bolCorrecta;
}