Hi All,
I am trying to extract max value of date from Data Table and then comparing with the current row row date. If both the dates are equal then I am clicking the max date. Even though after comparing I am getting the dates equal(output using write line) but in my case its going to else part saying dates are not matched . I have tried using Trim at the ned of both the sides.
 DateTime.TryParseExact(r(“Date”).ToString,“M/d/yyyy”,System.Globalization.CultureInfo.InvariantCulture,DateTimestyles.None,New DateTime)).Max(Function(r) DateTime.ParseExact(r(“Date”).ToString,“M/d/yyyy”,System.Globalization.CultureInfo.InvariantCulture,DateTimestyles.None)).ToString(“M/d/yyyy”)
CurrentRow(“DATE”).ToString.Equals(“max_date”)