3
Answers

Error - Operator < cannot be applied to operands of type string

Ramco Ramco

Ramco Ramco

1y
1.3k
1

Hi

  i am getting error - Operator < cannot be applied to operands of type string and DateTime?

if (objGrpResult.GrpSessionStartDate != null)
                            if (Convert.ToDateTime(ltrlSessionDate).ToString("dd-MM-yyyy") < objGrpResult.GrpSessionStartDate)

Thanks

Answers (3)