The Community will be temporarily unavailable starting on Friday February 28. We’ll be back as soon as we can! To learn more, check out our Announcements blog post.
Nov 25, 2020 11:24 AM
I’m trying to obtain the difference between 2 dates (going out 2 decimal places). I did format the result as a decimal going out 2 places. However, I am only getting whole number results.
My columns are:
Lease End - set up as a date
Today’s Date - set up as a formula: Today()
Lease Remaining - set up as a formula: DATETIME_DIFF({Lease End},{Today’s Date}, ‘Years’)
Any help appreciated!
Nov 25, 2020 01:35 PM
Hi @Alex_Everest - the DATETIME_DIFF
formulas only give results in whole numbers (of whatever unit you’ve chosen), so even when you select a format of decimal with 2dp, you get “.00” at the end. You could try this:
Use a smaller unit, then divide by the number of that unit in a year. So for example “weeks” is:
DATETIME_DIFF({Lease Date}, TODAY(), 'weeks')/52
Nov 25, 2020 06:02 PM
Worked perfectly, thanks @JonathanBowen
Appreciate it!