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.
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