I need help with what to write for my DateDiff Function to work properly between two datetimepicker boxes to give 'days' results. This is what I have and it works except I can't have the intDate1 to be specific and intDate2 as Now. I need to make it work so when the second date is chosen it gives the days between current date in intDate1 and date selected in intDate2.
Help Please??
Help Please??
Code:
Dim intDiff As Integer
Dim intDate1 As String
Dim intDate2 As String
intDate1 = "01/01/2007"
intDate2 = "Now"
intDiff = DateDiff("d", "01/01/2007", Now())
TxtBox1Days.Text = intDiff
Comment