Facing Issue while taking days difference

I have stored date in data table ( 19-03-2021 10:43:23 ) as a string. I want to take the difference with today’s date in integer. where I’m getting an error overload resolution failed because no accessible parse exact accepts this number of the argument.

Hi @Sachin_Jadhav

Do the below coding

Now().Subtract(DateTime.ParseExact(row(columnname).ToString,“dd-MM-yyyy hh:mm:ss”, System.Globalization.CultureInfo.InvariantCulture))

Try this way

getting error as ‘)’ expected

Hi @Sachin_Jadhav
just edited my response

check that please