Here is the code,
DateTime.Parse method will check whether string is date or not.If string is date then it returns true otherwise it throws an error. public bool IsDate(string Text)
{
try
{
System.DateTime dt = System.DateTime.Parse(Text);
}
catch
{
return false;
}
return true;
}