After Travis took his new position he was amazed to find that the developers that he was replacing were completely unaware of the Date/Time library in the .NET Framework. Instead the relied upon time spans and complicated regular expressions for simple tasks, such as validating a string as a date...
Travis was able to simplify the function a bit...
protected bool checkDateTime(string text) { DateTime dt; return DateTime.TryParse(text, out dt); }
