"Scott" <ho*******@virgin.net> schrieb:
I have an application that has a start date and a finish date I need to
calculate the number of days from the start date to the end date and then
display this in a read only text box... How might I code this?...
\\\
Dim d1 As Date = #12/22/1999#
Dim d2 As Date = Now()
Me.TextBox1.Text = CStr(d2.Subtract(d1).Days)
///
Alternatively you can use 'DateDiff' to calculate the difference between two
dates.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>