After reading on stackoverflow that in the case of checking the format of a DateTime you should use DateTime.TryParse. After trying some regex expressions they seem to get l
If you are using .NET 3 and above, you could always create an Extension method?
public static bool IsValidDate(this string value) { DateTime date = DateTime.Null; return DateTime.TryParse(value, out date); }
[Edited to rename the method name to a more appropriate one]