DATEDIFF (intervalstring, date1, date2)

Returns an integer corresponding to the difference according to intervalString between date1 and date2.

Valid intervals are d,dd,w,ww,m,mm,q,y,yy,yyyy,h,hh,n,s

See also: DATEADD, DATEFIFFMILLISECOND, DATEPART, DATESERIAL

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.