public static bool IsDate(string inputDate){bool isDate = true;try{ DateTime dateValue; dateValue = DateTime.ParseExact(inputDate,"yyyy-MM-dd",null);}catch{ isDate = false;}return isDate;}
Publicar un comentario
No hay comentarios.:
Publicar un comentario