Time difference between dateTime fields SSRS

不想你离开。 提交于 2019-12-10 16:12:31

问题


I have two datetime fields and I need to show the difference between them. I've used this expression to calculate it:

=DateDiff("n", Fields!hra_atncion.Value, Fields!fcha_incio.Value)

The result column should be on HH:mm, but the result is a Long expression type. Something like 428011156

Any answer will be apreciated!

UPDATE 21/11/2013

How I obtain the time difference in minutes between 12-11-2013 20:00 and 14-11-2013 08:00 ?


回答1:


I think, you should try this expression:

=Datediff("h",Fields!StartDate.value,Fields!EndDate.value) & ":" & Datediff("n",Fields!StartDate.value,Fields!EndDate.value) mod 60


来源:https://stackoverflow.com/questions/20084113/time-difference-between-datetime-fields-ssrs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!