How to format the results of DateDiff ??
Posted on 2012-04-06
I must be brain dead today because I can't figure out what must be a very simple problem.
I have an app that requires a timer to report elapsed time.
I have a start button and a stop button
I find the difference like this:
lblElapsedTime.Text = DateDiff(DateInterval.Second, Date1, Date2).ToString
However, I want lblElapsedTime.text to be in the HH:MM:SS format.
Instead the label counts up in seconds. after 60 seconds it just keeps counting up. 427 seconds doesn't mean anyting to users they want to know HH:MM:SS
How can I format the results ?