8 Topics

Member Avatar for
Member Avatar for Mike Askew

Howdy I have a timespan that contain in excess of 24 hours. For the example lets use a value of 1 day 6 hours and 32 minutes. I would like to get this into a string that displays "30:32". Have so far tried something along the lines of `string.Format("{0}:{1}", TimeSpan.TotalHours, …

Member Avatar for Teme64
0
2K
Member Avatar for ddanbe

This is just for fun. You know how old you are(I hope), but do you know how many days you are walking around on this planet? The two routines presented here could be used more practically in an ever present employee application.

Member Avatar for ddanbe
0
696
Member Avatar for J.C. SolvoTerra

I'm currently working on a collection of sub-projects, one of which was a backup manager. I needed to be able to allow the user to specify a backup time and a repeat interval. After thinking about the solution, decided it would be best for the user to provide an Initial …

Member Avatar for J.C. SolvoTerra
1
668
Member Avatar for castajiz_2

if (ts1.CompareTo(DateTime.Now) == -1 && ts2.CompareTo(DateTime.Now) == -1) { MessageBox.Show("...."); } the function asks for a object, i gave an object...

Member Avatar for ddanbe
0
172
Member Avatar for MassimilianoRiz

I've been given two dates that takes their values from two respective dtpickers. I've got to calculate the exact amount of days, months and years between them. So I tried this: Dim dteStartDate As Date Dim dteEndDate As Date dteStartDate = dtpStart.Text dteEndDate = dtpEnd.Text dteResultDays = DateDiff(DateInterval.Day, dteStartDate, dteEndDate) …

Member Avatar for thines01
0
134
Member Avatar for jlivvers

Hi is there an accepted way to calculate the number of times a specific day would come round in a given timespan? For example if we have 32 as a variable that represents the number of weeks I would then need to find out how many times the first of …

Member Avatar for jlivvers
0
123
Member Avatar for NOLK

Hello all, I'm really struggling to find a way or method to convert my TimeSpan data type into an Int so I can put the value into an Array. Now I know you can't actually convert the TimeSpan variable into Int, but is there some sort of work around? This …

Member Avatar for Geekitygeek
0
323
Member Avatar for ITfav

Basically what I want is to have the timer be reset back to 3 sec once the [COLOR="red"][B]Reset button[/B][/COLOR] is clicked. Preferably, I want the code to be in the same sub as the timer, though any better ideas are most welcomed. I've already put in comments where i want …

Member Avatar for TomW
0
290

The End.