I need to compare 2 dates and find the difference in the number of days between the 2 dates. I have tried using DateDiff from the various Forum solutions I found, but I cannot get it to work. Can anyone help me to figure out what is the issue?
Thank you very much!
datedifference = DateDiff(DateInterval.Day,Convert.ToDateTime(date1),Convert.ToDateTime(date2))