I have a report and one of the fields calculates a timespan in an expression e.g
=Fields!Date1.Value-Fields!Date2.Value
I would like to display in the format dd:hh:mm:ss so days,hours,minutes and seconds. If i just leave the expression it sort of works but i get milliseconds which i don't want and if there are no days then that value disappears.
I've seen lots of examples using formatting to get HH:mm:ss but not on how to do the days.
Try:
It will give you
dd:HH:mm:ss
format. NoteDate1
must be greater thanDate2
.Based on @alejandro's answer I ended up with
just doing the straight subtraction didn't seem to work.