how to include date inclusive b/w two dates

i have

Code:
 DateDiff(DateInterval.DayOfYear,date1,date2)
i want if both date are same(say 12/2/2010,12/2/2010) it should give me 1 rather than 0 .