my string = 01-02-21
I use this command in if condition ,
DateTime.TryParseExact(ExcelDT.Rows(0).Item(“GL_DATE”).ToString, “dd-MM’yyyy”, System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None,Nothing)
it always return True.
I think it should return false
Please correct my logic.