how to include date inclusive b/w two dates
i have
i want if both date are same(say 12/2/2010,12/2/2010) it should give me 1 rather than 0 .Code:DateDiff(DateInterval.DayOfYear,date1,date2)
Printable View
how to include date inclusive b/w two dates
i have
i want if both date are same(say 12/2/2010,12/2/2010) it should give me 1 rather than 0 .Code:DateDiff(DateInterval.DayOfYear,date1,date2)
Use the DateInterval.Day
Code:Dim dt1 As Date = "12/02/2010"
Dim dt2 As Date = "12/02/2010"
Dim diff As Integer = DateDiff(DateInterval.Day, dt1, dt2)
it still gives 0 rather than1