rodeomount
Programmer
I keep getting an error that states: "Operator '>' cannot be applied to operands of type 'string' and 'string'" when using the following. I'm trying to compare to see if the dtExpire date is greater than todays date. How can I do this in C#?
Code:
if(this.Fields["dtCertExpire"].Value.ToString() > System.DateTime.Now.ToLongDateString())