I want to get difference of days in two dates in business rule expression. for example I have two dates 2024-05-14 13:28:10 and 2024-05-16 09:28:10 in the columns time_commit.start_dttm and time_commit.commit_dttm respectively. I want to get the difference of their days (for this case it is 2) and difference of their hours (for this case 4 hours).
Please note that I tried to use value type rule. I also created a view which will give this required result but the view is not working with value type it seems.
Any advise will be appreciated.