Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Boolean IsDate(string Expression)
- {
- Boolean resultado = false;
- try
- {
- DateTime isDate = DateTime.ParseExact(Expression, "dd/MM/yyyy", null);
- resultado = true;
- }
- catch
- {
- resultado = false;
- }
- return resultado;
- }
Add Comment
Please, Sign In to add comment