Home
Manage Your Code
Snippet: IsDate (C#)
Title: IsDate Language: C#
Description: If you must do this at least use tryparse rather than try catch Views: 119
Author: Andrew Lewis Date Added: 6/2/2008
Copy Code  
1public static bool IsDate(Object obj)
2{
3	DateTime result;
4	return DateTime.TryParse(obj.ToString(), out result);
5}