JackBurton07
IS-IT--Management
I need to calculate the difference between today's date and
23/06/2017(which is txtterm1.value) ands display it in a text box (txtmat1.text)
I heard that DateDiff is supposed to do this but cant figure it out
does this look right?
Function calculate_days()
txtMat1.Text = DateDiff(DateInterval.Day, txtterm1.Value, Now)
Return txtMat1.Text
End Function
23/06/2017(which is txtterm1.value) ands display it in a text box (txtmat1.text)
I heard that DateDiff is supposed to do this but cant figure it out
does this look right?
Function calculate_days()
txtMat1.Text = DateDiff(DateInterval.Day, txtterm1.Value, Now)
Return txtMat1.Text
End Function