SSRS - Report Builder 3.0
We have recently migrated all our SQL Server datetime columns to datetimeoffset columns. This has had a deleterious effect on one of our reports.
The report references a NULLABLE datetimeoffset column called TerminalStateDateTime. I wish to use the following formatting:
= Format(Fields!TerminalStateDateTime.Value.DateTime, "dd MMM yyyy hh:mm")
Unfortunately, when the value of TerminalStateDateTime is NULL, it shows #Error. I've tried using IIF and Switch to trap this, but nothing works:
=IIF(IsNothing(Fields!TerminalStateDateTime.Value), "", Format(Fields!TerminalStateDateTime.Value.DateTime, "dd MMM yyyy hh:mm"))
Does anyone have any idea how to disregard NULL values and yet correctly format non-NULL values?
Thanks
Edward