Dim DatTim1 As Date = #12/1/2007#
Dim DatTim2 As Date = #12/1/2007#

Dim WD As Long = DateDiff(DateIn terval.Day, DatTim1, DatTim2)
Me.totalCount.T ext = WD + 1


I used the code above to calculate date interval between two date. but, i dont want to declare DatTim1 & DatTim2 as a constants value. Because i want the user to key in the values in the text box. how can i declare the value from the text...