Dim duedate As Date = dtpBorrow.Value
Dim tsTimeSpan As TimeSpan
Dim noOfDays As Integer
tsTimeSpan = Now.Subtract(duedate)
noOfDays = tsTimeSpan.Days
txtFine1.Text = noOfDays.ToString()
my problem is that it produced a negative value.. how's that happened?

New Topic/Question
Reply



MultiQuote




|