3
Answers

Invalid castException - Convert.ToString(DateTime.Now)

Kumar AU

Kumar AU

7y
633
1
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)