Hi, I’m trying to compare two Date which is in String format (5/27/2021, 10/28/2021). I want to compare these two dates and perform activities based on the difference. When i tried to get some help from Forum i found “DateDiff(DateInterval.Day, Convert.ToDateTime(firstDate), Convert.ToDateTime(secondDate)” but when i implemented it I’m not sure about the variable type i should choose while assigning it to a variable, which causes exception “Expression is not an array or a method, and cannot have an argument list”
Kindly help me to find the difference between two dates. Thanks!