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
Post a Comment