I guess Vednarayan just need the days, so he could simply use the function:
DiffDays(dt1, dt2) returns the difference in days between 'dt1' and 'dt2'; i.e. how many days have passed between these two dates:
- Returns a positive number if 'dt1' is smaller than 'dt2';
- Returns a negative number if 'dt1' is bigger than 'dt2';
- Returns 0 if the two dates are equal.
The Time component you provide in the parameters is ignored. The DiffDays function receives two Date Time parameters, and then replaces the Time component with 00:00:00.
Vednarayan, did this help? Let us know!