* "Tim" <Ti************@MajesticStar.com> scripsit:
For example:
KNOWNDATE = 12/22/2003 10:13:00 AM
How can I get the number of hours between Now() and
KNOWDATE
\\\
Dim KnownDate As Date = DateTime.Parse(...)
MsgBox(KnownDate.Subtract(DateTime.Now).Hours.ToSt ring())
///
As an alternative, you can use 'DateDiff'.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>