Ramco Ramco

Ramco Ramco

  • 443
  • 3.4k
  • 527k

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)