I want to calculate the difference from now till the top of the next hour i.e.
12:00:00 pm
minus
11:10:23 am
I have tried the following:
VB Code:
Plushour = DateTime.Now.AddHours(1) Dim span As TimeSpan = Plushour.Subtract(DateTime.Now) lbltime_countdown.Text = Format(span.Hours, "00") & ":" & Format(span.Minutes, "00") & ":" & Format(span.Seconds, "00")
Unfortunately the plus hour, adds an hour to the current time so my response is always -01:00:00 is there anyway to set it so that I can simply add an hour to the current time and keep the minutes and seconds to 00??
Thanks in advance
Kind Regards
Chris




Reply With Quote