Skip to content

Instantly share code, notes, and snippets.

public static class StringExtensions
{
public static bool IsDate(this string value)
{
if (DateTime.TryParse(value, out DateTime Temp) == true)
return true;
else
return false;
}