By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,065 Members | 1,598 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,065 IT Pros & Developers. It's quick & easy.

Formatting Timespan?

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

"Tales Normando" <ta*****@bol.com.br> wrote in message
news:O6*************@TK2MSFTNGP10.phx.gbl...
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

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.