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

SSRS with IIF and DATEADD

$
0
0

Hi,

I am using this variable to convert the UTC date to AEST

The expression throws errors in SSRS

=IIF(FORMAT(Fields!submitted_datetime.Value,"yyyyMMdd") < "20161002",DATEADD("hh",10,FORMAT(Fields!submitted_datetime.Value,"dd-mm-yyyy hh:mm:ss")),DATEADD("hh",11,FORMAT(Fields!submitted_datetime.Value,"dd-mm-yyyy hh:mm:ss")))

Any help is highly appreciated!

Regards,

kccrga


-kccrga http://dbatrend.blogspot.com.au/


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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