1
I am using a Label to receive the time of a video. The time I receive from the video is a double
which comes in milliseconds, for example: 1555 = 1,555 sec.
When I convert to TimeSpan
the label appears as follows:
the code I’m using is:
dt = TimeSpan.FromMilliseconds(Player.input.time);
Cronometro.Text = dt.ToString();
Those zeroes that appear after the numbers should not be there. It was meant to be 00:00:03.431 I use a Windows Form.
It didn’t work, Mister.
– Caio Henrique Nespolo
try what I updated
– João Martins