I am working on a project where I am reading in a file which could come in two different formats, one includes a date and time and the other doesn\'t.
When I read i
Use this method to check if string is date or not:
private bool CheckDate(String date) { try { DateTime dt = DateTime.Parse(date); return true; } catch { return false; } }