![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/10/2006, 14:04
|
![Avatar de shumito](http://static.forosdelweb.com/customavatars/avatar137823_1.gif) | | | Fecha de Ingreso: mayo-2006
Mensajes: 248
Antigüedad: 18 años, 8 meses 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;
} |