Hi
Im trying to split up the result of a Timespan which is [ -109.03:04:36.1109827 ].
This is achieved via:
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.
VulpesPosted Jan 19, 2012, 4:44 AM
D LngPosted Jan 18, 2012, 5:58 PM
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 ?
VulpesPosted Jan 18, 2012, 5:25 PM
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