I'm looking for the following format:
00:00:00
Using the section as a reference here. This should technically work .ToString("hh:mm:ss")
but it is complaining there is a syntax error.
Note: ToString("g")
is close but gives me this format 0:0:0.0000...
. I want the formatter to either truncate or round if the value in question is not a whole number.