在SSRS中获取某些月份值

时间:2016-01-22 11:06:38

标签: sql reporting-services ssrs-2012

我想按月份日期获取值。

enter image description here

我用这段代码试了一下:

DECLARE @IntervalStartDate AS datetime = '{param|SourceDateTime.IntervalStartdateTime:U}'
DECLARE @IntervalEndDate AS datetime   = '{param|SourceDateTime.IntervalEndDateTime:U}'

....WHERE(IntervalDate Between @IntervalStartDateTime AND @IntervalEndDateTime)...

但它显示错误:

  

"从字符串"

转换日期和/或时间时转换失败

我做错了什么?

0 个答案:

没有答案