reporting services - SSRS conditional on Date always show error -


i'm blocked because conditional evaluating both side of statement:

=iif(isnothing(fields!canceldate.value), nothing, fields!canceldate.value.tolocaltime())

i'd have empty field when canceldate has no value because of tolocaltime(), breaks.

is there came across this?

you can use local time conversion on conditional statement so:

=iif(isnothing(fields!canceldate.value), nothing, cdate(iif(isnothing(fields!canceldate.value), nothing, fields!canceldate.value)).tolocaltime()) 

this simplified, works.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -