How to concatenate two time fields

  • Hi,

    I am looking to concatenate two field times so it shows at 09:00 - 17:30.

    My two fields are: Fields!Shift_Start.Value and Fields!Shift_End.Value

    These fields are Time(0) data type in SQL.

    Is there a way of doing this?

    Thank you 🙂

  • Not used time columns in SSRS so this may not work, but will need to create an expression in the tablix something like

    Fields!Shift_Start.Value + " - " + Fields!Shift_End.Value

    You may need to convert the values to strings first.

    Or do it at the DB layer and convert the times to varchar and use string concatenation something like

    convert(varchar(5),shift_start)+ ' - ' + convert(varchar(5),shift_end)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply