Ramco Ramco

Ramco Ramco

  • 443
  • 3.4k
  • 526.9k

Error - Cannot implicitly convert type string to system.date.time

Sep 21 2022 7:01 AM

Hi

   DateTime frDate = Utility.CurrentDateTime().AddMonths(-1);

   frDate = Convert.ToDateTime(frDate).ToString("dd-MM-yyyy");

Thanks


Answers (3)