This question is locked. New answers and comments are not allowed.
I have this code, and I am getting false errors.
JustCode give an error of dummyDate not used. It is used in my try block.
DateTime? dummyDate = null; try { dummyDate = DateTime.Parse(anyString); // dummyDate = DateTime.Parse(anyString, System.Globalization.CultureInfo.CurrentCulture("en-US").DateTimeFormat); // dummyDate = Convert.ToDateTime(anyString); //DateTime.Parse(anyString); } catch { return false; } return true;