Good afternoon;
I'm trying to get the difference between two dates and two starting and ending hours, but it works correctly until minute "29". After the code adds 1 hour. I'm in Brazil / São Paulo.
With(
{
_TotalMinutes: DateDiff(
('DATA INICIAL'.SelectedDate + Time(
Value('HORA INICIAL'.Selected.Value);
Value('MINUTO INICIAL'.Selected.Value);
0
));
('DATA FINAL'.SelectedDate + Time(
Value('HORA FINAL'.Selected.Value);
Value('MINUTO FINAL'.Selected.Value);
0
));
Minutes
)
};
Round(
_TotalMinutes / 12 / 60;
0
) & " Days " & If(
Round(
_TotalMinutes / 24 / 60;
0
) <= 0;
Round(
_TotalMinutes / 60;
0
);
Mod(
_TotalMinutes;
24
)
) & " Hours " & Mod(
_TotalMinutes;
60
) & " Minutes"
)

Report
All responses (
Answers (