Display a formatted Timespan time

Asked

Viewed 63 times

1

I have two variables:

        TimeSpan horaI = new TimeSpan(10, 00, 00);
        TimeSpan horaF = new TimeSpan(22, 00, 00);

I need to present them on the screen as follows 10:00 and 22:00. But I’m not getting it.

How could I do that?

1 answer

2


Browser other questions tagged

You are not signed in. Login or sign up in order to post.