Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

SQL Server Datediff vs SSRS Expression DateDiff function

$
0
0

ENVIRONMENT: SQL SERVER 2005, SSRS 2005

Help understanding inconsistent results between sql server and ssrs?

I am using the below function to calculate number of days in SQL:

select datediff(d, '2013-04-19 09:36:00.000','2013-05-24 08:36:00.000')

I get an output of 35

When I use the below statement in SSRS
DateDiff(DateInterval.Day
, “2013-04-19 09:36:00.000”,”2013-05-24 08:36:00.000”)

I get 34 as my output.

Could some one please educate me regarding this difference as I have
now hit a big thick brick wall and cannot understand why this is
happening?

Thanks all for your time.



Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>