Determine Whether a String Representation of Date/Time is Valid
Use the following C# 2.0 code to determine whether a string representation of date/time is valid: string s=”04/01/2008″; //string to be converted to date time object.DateTime result;bool success = DateTime.TryParse(s,