public bool IsDate(object value)
{
bool result = false;
string strDate = value.ToString();
try
{
DateTime dt = DateTime.Parse(strDate);
if(dt != DateTime.MinValue && dt != DateTime.MaxValue)
result = true;
}
catch (Exception ex)
{
result = false;
}
return result;
}
Add a comment