Geek Noise
Rants, rambles, news and notes by Peter Provost
13

Annoying TimeSpan

Tuesday, 13 May 2003 09:51 by Peter Provost

Why doesn't System.TimeSpan have a ToString() overload that takes formatting info?

I should not have to do this:

DateTime dt = new DateTime(1, 1, 1, ts.Hours, 
ts.Minutes, ts.Seconds );
string result = dt.ToShortTimeString();

Dumb.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   Technology
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed