Display TimeSpan without milliseconds

TimeSpan TimeSpan1 = new TimeSpan(-12345678909876L);
Label1.Text = TimeSpan1.ToString;
Label2.Text = new TimeSpan(0, 0, TimeSpan1.TotalSeconds).ToString;

No comments:

Post a Comment