Help

Date Difference

945 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Alex_Everest
4 - Data Explorer
4 - Data Explorer

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!

2 Replies 2

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:

Screenshot 2020-11-25 at 21.33.11

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

Worked perfectly, thanks @JonathanBowen
Appreciate it!