Greater Than or Less Than Months

Hi, I'm having this problem, I wanted to know how I'm going to know if the duration is greater than or less than in exactly 1, 2, 3... 6, 7, and so on months. Where should I divide it? And what should I put on the white box below.

months = milliseconds ÷ 2,629,746,000
You can use if-else accordingly.

2 Likes

grafik

2 Likes

How about in years?

Thank Anke for correcting me, yes true it woun't work in all cases as days in months are not static(30 days). @bianchix , please ignore my earlier post.

1 Like

Maybe this guide helps:

1 Like

Thank youuu.

1 Like

May I see the whole blocks in else if modulo of call month x...

1 Like

Or maybe easier to read:

1 Like

Try this: monthBtw2Dates.aia (6.4 KB)

3 Likes

Thank you for this. I'll apply this to my app and see if it will work on mine.:heart:

Apparently I didn't update this block:

Of course it has to be like this:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.