I have a conversion problem with this code:
Convert.ToString(result)
hourA.Text = result;
The result word is a DateTime and I would like to convert it in text to put it in a TextBox
For me, this code looks like good but I still have the following error:
CS0029 C# Cannot implicitly convert type to 'string'
What could I change to make it work?
result.ToString()? learn.microsoft.com/en-us/dotnet/api/…