27-09-22 04:44 PM
27-09-22 08:49 PM
27-02-24 03:16 AM
Love this, great suggestion and well illustrated!
27-02-24 01:58 PM
Why don't you use simply :
ToMinutes([DateTime 2] - [DateTime 1])
27-02-24 07:34 PM
I think the point was that many people don't remember the numeric representatives of the time periods (Day is 9, Month is 5 etc.) and they're not very easy to find, especially when you're trying to work out something quickly. The numbers are also an easy way to hide bugs in your code, as I found yesterday when I realised I'd used a 4 rather than a 5 in a DateDiff calculation...
28-02-24 01:40 PM
I agree Jeremy I just wanted to offer an easier way to do it knowing that Bleuprism warns that DateDiff is deprecated !
Time to get rid of it 😉
------------------------------
Johan Michiels
------------------------------
28-02-24 06:38 PM
Interesting! I needed to identify transactions where the different between start and end dates was no more than 3 months so I did this:
(DateDiff([Date Intervals.Month], [RFC Start Date], [RFC End Date]))<=3
I could have used ToDays and 90 as you suggest.