Kumar AU

Kumar AU

  • 1.1k
  • 320
  • 63.2k

Invalid castException - Convert.ToString(DateTime.Now)

Jun 22 2017 8:50 PM
Hi,
I have used the below code.
string str = Convert.ToString(DateTime.Now) , I am not getting any error message, and the same code as been deployed to production.. I am getting error in Dyntracelogs which says that - Invalid castException
Kindly let me know what mistake I have done.
Please help me

Answers (3)