C CJ Taylor Dec 23, 2003 #2 Now? Now()? Taht statement is never true... because after all.. Now is Now =)
H Herfried K. Wagner [MVP] Dec 23, 2003 #3 * "Tim said: How can I tell if 24 hours has past from now? Click to expand... It's christmas, I know, but are you sure you had a look at the members of the 'DateTime' structure before posting your question?
* "Tim said: How can I tell if 24 hours has past from now? Click to expand... It's christmas, I know, but are you sure you had a look at the members of the 'DateTime' structure before posting your question?
T Tim Dec 23, 2003 #4 For example: KNOWNDATE = 12/22/2003 10:13:00 AM How can I get the number of hours between Now() and KNOWDATE Tim
For example: KNOWNDATE = 12/22/2003 10:13:00 AM How can I get the number of hours between Now() and KNOWDATE Tim
T Tim Dec 23, 2003 #5 For example: KNOWNDATE = 12/22/2003 10:13:00 AM How can I get the number of hours between Now() and KNOWDATE Tim
For example: KNOWNDATE = 12/22/2003 10:13:00 AM How can I get the number of hours between Now() and KNOWDATE Tim
H Herfried K. Wagner [MVP] Dec 23, 2003 #6 * "Tim said: For example: KNOWNDATE = 12/22/2003 10:13:00 AM How can I get the number of hours between Now() and KNOWDATE Click to expand... \\\ Dim KnownDate As Date = DateTime.Parse(...) MsgBox(KnownDate.Subtract(DateTime.Now).Hours.ToString()) /// As an alternative, you can use 'DateDiff'.
* "Tim said: For example: KNOWNDATE = 12/22/2003 10:13:00 AM How can I get the number of hours between Now() and KNOWDATE Click to expand... \\\ Dim KnownDate As Date = DateTime.Parse(...) MsgBox(KnownDate.Subtract(DateTime.Now).Hours.ToString()) /// As an alternative, you can use 'DateDiff'.
A Armin Zingler Dec 24, 2003 #7 Herfried K. Wagner said: \\\ Dim KnownDate As Date = DateTime.Parse(...) MsgBox(KnownDate.Subtract(DateTime.Now).Hours.ToString()) /// As an alternative, you can use 'DateDiff'. Click to expand... In addition: Instead of the Hours member you, Tim, can use the TotalHours property.
Herfried K. Wagner said: \\\ Dim KnownDate As Date = DateTime.Parse(...) MsgBox(KnownDate.Subtract(DateTime.Now).Hours.ToString()) /// As an alternative, you can use 'DateDiff'. Click to expand... In addition: Instead of the Hours member you, Tim, can use the TotalHours property.