I have a table in my report, where I have columns of datatype Time(7)
.
Now I have problems formatting them correctly in Reporting Services 2008.
If I set the format of the expression to HH:mm it does still display 11:12:000
!
I want to get only the hours and minutes! like 11:12
It looks like RS does not know the format. None of the following does work:
=Hour(Fields!MyTime.Value)
=CDate(Fields!MyTime.Value)
Both throw an error. I think it propably does format it as plain text?
Thanks for your assistance
Edit:
I use SQL Server 2008 R2 Express as the database. (so I include the DataSource in the report, because Reporting Services in SQL Server Express does not allow to use shared DataSources.)
The Solution (Thanks Mark Bannister):
=Today() + Fields!MyTime.Value
Then you can use the common formatting used for datetime values!