我想按月份日期获取值。
我用这段代码试了一下:
DECLARE @IntervalStartDate AS datetime = '{param|SourceDateTime.IntervalStartdateTime:U}'
DECLARE @IntervalEndDate AS datetime = '{param|SourceDateTime.IntervalEndDateTime:U}'
....WHERE(IntervalDate Between @IntervalStartDateTime AND @IntervalEndDateTime)...
但它显示错误:
"从字符串"
转换日期和/或时间时转换失败
我做错了什么?