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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top