Difference Between Dates

This code gives the difference in days between 2 dates.

txtE2E = DateDiff("d", DTStart, DTComp)

Code Snippits