How to Convert Minutes to Days,Hours and Minutes Format in Bold Reports
Bold Reports empowers users to transform and display data in various formats, ensuring intuitive and easy-to-understand representations, especially when dealing with time-related information. This article provides a guide on converting time values in minutes to a more readable format of days, hours, and minutes (dd:HH:mm) within Bold Reports.
Steps to Convert Minutes to days
- Open your report in the Bold Reports Report Designer.
- Add a textbox, or select the tablix cell where you want to show the converted value.
- Right-click the textbox or cell and select Expression to open the Expression Builder
- Enter the expression for the part you need. The number
1440is the count of minutes in a day (24 × 60), andModreturns the remainder.
Days
=Int(Fields!YourMinutesField.Value/1440)
Hours
=Int((Fields!YourMinutesField.Value Mod 1440) / 60)
Minutes
=Fields!YourMinutesField.Value Mod 60
Days:Hours: Minutes
=Int(Fields!YourMinutesField.Value/1440) & " Days " & Int((Fields!YourMinutesField.Value Mod 1440) / 60) & " Hours " & Fields!YourMinutesField.Value Mod 60 & " Minutes"
Example:
Consider you have a field called duration that contains the time value in minutes. You can create three fields using the expressions mentioned above to display the time in days, hours, and minutes.
Converting minutes to a days:hours:minutes format in Bold Reports enhances the readability and comprehension of time-related data in your reports. By following the steps outlined above, you can effectively present time data in a format that is easily understandable for your viewers.