I've coded a way to display a TimeSpan in VB.NET Framework 4.0 which look like this:
Me.lbl_StatsOverTimeSince.Text = TimeSpan.FromSeconds(My.Settings.stats_OverTimeSince).ToString("d\d\ h\h\ m\m\ s\s")
Now my problem is that I tried converting this application to 2.0 and it's the only thing that is not working.
I've seen this thread: Formatting TimeSpans
I tried tweaking with the suggested idea:
Dim ts As TimeSpan = TimeSpan.FromSeconds(My.Settings.stats_OverTimeSince)
Me.lbl_StatsOverTimeSince.Text = String.Format("{0:d\\d\\ h\\h\\ m\\m\ s\\s}", ts)
I figured the problem is that I'm working with TimeSpan.FromSeconds instead of New TimeSpan() because it displays 999.23:59:59 whatever the FromSeconds value is.
Is there any workaround?
Thanks in advance.