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

SSRS Parse Date Error

$
0
0

Hi, 

Any idea why getting an #Error using the code below when the field(fp_firstshifttimein) does not contain value. But when the the field contains value, it works.

=IIF(IsDate(Fields!fp_firstshifttimein.Value), DateTime.Parse(Fields!fp_firstshifttimein.Value).addDays(8), Nothing)

Same issue with the code below:

=IIF(IsNothing(Fields!fp_firstshifttimein.Value), Nothing, DateTime.Parse(Fields!fp_firstshifttimein.Value).addDays(8))

Thanks all.





Viewing all articles
Browse latest Browse all 10045

Trending Articles



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