Is the parameter that specifies the part of the date to return. 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
weekday dw
hour hh
minute mi, n
second ss, s
millisecond ms
SELECT DATEPART(month, 你的时间列) FROM .....
或者between ..... and .....
" between '" & Session("startdate") & "' and '" & Session("enddate") & "'"