I want to work out the difference (number of days) between 2 dates selected
using the date picker in vb.net and displaying this in textbox1 (which will
be un-editable to the user)
An MVP game me the following code, which looks acceptable to me in practice,
but appears to always through up 0 in textbox1??? Am I doing anything
blatantly wrong or is there anything else I need to do???
Dim d1, d2 As Date
Me.txtlength.Text = CStr(d2.Subtract(d1).Days)
Is this code correct or do I need something else?
Scott