简体   繁体   English

SSRS日期参数中的时间戳

[英]Timestamp in SSRS date parameter

I am working on an ssrs report with fetchxml as the data source. 我正在使用fetchxml作为数据源的ssrs报告。 I have two date parameters in the report. 我在报告中有两个日期参数。 When we provide different dates in from and to parameter , the report works without any issue. 当我们在参数from和to中提供不同的日期时,报表将正常工作。 But if we provide the same date for both the parameters then the report shows no data. 但是,如果我们为两个参数提供相同的日期,则报告将不显示任何数据。 I know that its because of the timestamp. 我知道这是因为时间戳。 How can i add the timestamp "00.00.01" to the from and "23:59.57" to the to parameter. 我如何将时间戳“ 00.00.01”添加到from和将“ 23:59.57”添加到to参数。

Any suggestion would be of great help. 任何建议都会有很大帮助。

Thanks in advance. 提前致谢。 Sandeep 桑迪普

您必须将其添加到数据集中的SQL查询中,例如。

where somedate between @startDate+' 00:00:00' and @enddate +' 23:59:59'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM