Hi,
I have a string that might include a date as substring. For example the string may be "Oct 23, 2008 16:41:58 GMT Unassigned". I would like to check if a substring of the given string can be converted to a date. I tried using:
public static bool IsDate(String str)
{
DateTime dt;
return DateTime.TryParse(str, out dt);
}
But it only finds exact date format. Is there a library that does this?
Thanks