nibsy Posted October 30, 2002 Posted October 30, 2002 I am using the DateDiff function as follows; iDiff = DateDiff(DateInterval.Day, Now, dDate) where dDate is an input date. Why does iDiff = 0 when BOTH todays and tomorrows dates are entered? Shouldn't iDiff = 1 when tomorrows date is entered? Can anyone help? Quote
*Gurus* Derek Stone Posted October 30, 2002 *Gurus* Posted October 30, 2002 Dim dtNow As DateTime = DateTime.Now Dim dtLater As DateTime = dtNow.AddDays(1) Dim tsDiff As TimeSpan = dtLater.Subtract(dtNow) MessageBox.Show(tsDiff.ToString(), "") Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.