Ramco Ramco

Ramco Ramco

  • 422
  • 3.4k
  • 491.4k

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

Apr 19 2023 3:00 PM

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)