for example:
the textbox is: -2
then in database it will save by increamenting as 1.
it will become as: -3
can someone help me out for this problem. thanks
----
i have here a sample code for computing delays of date.
but then the computation if d2 is greater than d1 it will be a negative result. but the answer is not accurate (see the attach picture)
here is my code:
Expand|Select|Wrap|Line Numbers
- Dim dt1 As DateTime = Convert.ToDateTime(Date.Now)
- Dim dt2 As DateTime = Convert.ToDateTime(txtDate2.Text)
- Dim ts As TimeSpan = dt1 - dt2
- If Convert.ToInt32(ts.Days) <> 0 Then
- txtTtlDelay.Text = Convert.ToInt32(ts.Days)
- ElseIf Convert.ToInt32(ts.Days) = 0 Then
- txtTtlDelay.Text = Convert.ToInt32(ts.Days)
- Else
- Response.Write("Invalid Input")
- End If