当日 where convert(nvarchar(10),createdate,120)='${today()}'
当月where convert(nvarchar(10),createdate,120)>='${dateinmonth(today (),1)}' and convert(nvarchar(10),createdate,120)<='${dateinmonth (today (),-1)}'
当年
where convert(nvarchar(10),createdate,120)>='${dateinyear(today (),1)}' and convert(nvarchar(10),createdate,120)<='${dateinyear (today (),-1)}'