If: String was not recognized as a valid DateTime.
when I just compare the date in excel and today date in excel
Can any one plz help me
i use this code to compare the excel date. DateTime.ParseExact(row("Date").ToString.Trim,"dd/MM/yyyy HH:mm:ss",System.Globalization.CultureInfo.InvariantCulture)=Today
Date format dd/MM/yyyy
Its working can you please explain I didn’t get. explain that Datetime.ParseExact(newstring,“dd-MM-yyyy”,System.Globalization.CultureInfo.InvariantCulture)