Posted 26 June 2020, 1:23 am EST
I have a section report. In this report I need a list of times in the format “HH:mm”. I then need subtotals and totals also in this format.
I tried passing this data in as Time with the OutputFormat property set to “HH:mm” but this was throwing exceptions as it wasn’t a valid conversion from a TimeSpan.
So I found a workaround where I use a c# script in the DataField:
=((int)(TimeInMins / 60)).ToString("D2") + ":" + ((int)(TimeInMins % 60)).ToString("D2")
This is fine for the individual rows but on the subtotals and totals it only returns the value of the last row in that format.
Could somebody point me in the right direction?