C#: MessageBox.Show(TimeSpan)
Posted
by every_answer_gets_a_point
on Stack Overflow
See other posts from Stack Overflow
or by every_answer_gets_a_point
Published on 2010-04-12T19:46:33Z
Indexed on
2010/04/12
19:52 UTC
Read the original article
Hit count: 659
i would like to show a TimeSpan
in a MessageBox
but am getting an error:
DateTime date1 = new DateTime(byear, bmonth, bday, 0, 0, 0);
DateTime datenow = DateTime.Now;
TimeSpan age = datenow - date1;
MessageBox.Show(ToString(age));
Error 1 No overload for method 'ToString' takes '1' arguments
how do i output a messagebox with TimeSpan
?
© Stack Overflow or respective owner