string[] formats = { "yyyymmdd","yyyymmddhhmmss" }; bool valid = true;
if (!DateTime.TryParseExact(DesiredReportVersionDate, formats, new CultureInfo("en-US"), DateTimeStyles.None, out timevalue)) { valid = false; throw new Exception("invalid format" + timevalue); }
string[] formats = { "yyyyMMdd","yyyyMMddhhmmss" };
string[] formats = { "yyyyMMdd","yyyyMMddhhmmss" }; bool valid = true;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)