Hi
Im trying to split up the result of a Timespan which is [ -109.03:04:36.1109827 ].
This is achieved via:
Code
DateTime myFinish = DateTime.Parse("7/5/2012");
TimeSpan myLeft = DateTime.Now.Subtract(myFinish);I have tried various string.format to seperate the result into Months Days Hours Minutes Seconds.
Im having no luck.
Can anyone point me down the right road please, much appreciated.

VulpesRank #55 · 29.2K reputationPosted Jan 18, 2012, 11:44 PM EST
VulpesRank #55 · 29.2K reputationPosted Jan 18, 2012, 12:25 PM EST
Unfortunately, months aren't supported - probably because they're not a constant number of days.
It's also possible to devise your own TimeSpan formats. Check out:
http://msdn.microsoft.com/en-us/library/ee372287.aspx
D Lng11 reputationPosted Jan 18, 2012, 12:58 PM EST
I execute this via:
private void btButton1_Click(object sender, RoutedEventArgs e)
Can it refresh automatically without using a button, like an open and refresh ?