Ramco Ramco

Ramco Ramco

  • 429
  • 3.5k
  • 564.1k

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)