public DateTime?ConvertIssuedDate() { if (string.IsNullOrEmpty(IssueDate) || IssueDate.Length != 7) { return(null); } int year, month, day; if (!int.TryParse(IssueDate.Substring(0, 3), out year)) { return(null); } if (!int.TryParse(IssueDate.Substring(3, 2), out month)) { return(null); } if (!int.TryParse(IssueDate.Substring(5, 2), out day)) { return(null); } string datestr = string.Format("{0}/{1}/{2}", year + 1911, month, day); DateTime dt; if (!DateTime.TryParse(datestr, out dt)) { return(null); } return(dt); }