Formatting Timespan?

  • Thread starter Thread starter Tales Normando
  • Start date Start date
T

Tales Normando

Hi,

How can I format a timespan to show only the hours, minutes and
seconds? I don't really like how it adds the days information on the
returned ToString() string.


Tales
 
Hi,
One option is to use TimeSpan's .Hours, .Minutes & .Seconds properties and
concatenate them according to the format required. TimeSpan.ToString()
behavior cannot be changed.

Hi,

How can I format a timespan to show only the hours, minutes and
seconds? I don't really like how it adds the days information on the
returned ToString() string.


Tales
 
Back
Top