=datediff(day, Fields!date.Value, Globals!ExecutionTime)
The day in the above datediff function is a function itself, where it has to be an interval parameter.
You can check the help on datediff function for its syntax and parameters.
Actually the first paramaeter to datediff function should be any of this.
Syntax
DATEDIFF(datepart, startdate, enddate)
Arguments
datepart
Is the parameter that specifies on which part of the date to calculate the difference. The table lists dateparts and abbreviations recognized by Microsoft® SQL Serverâ¢.
Datepart Abbreviations
year yy, yyyy
quarter qq, q
month mm, m
dayofyear dy, y
day dd, d
week wk, ww
hour hh
minute mi, n
second ss, s
millisecond ms
In your case you should use
dd or
d
Hope that helps.
Cheers!
_________________________
-Vijay G

Strive for Perfection
