Help

Re: Calculate Difference between Two Dates

152 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Anet_Gambina1
4 - Data Explorer
4 - Data Explorer

Hello,

I have two Date fields that need to show the time remaining (in years/months). My attempts at declaring the correct formula have not been successful. Here’s a screenshot with the field outlined where I want to show the difference. I believe this is the closest I’ve come:

DATETIME_DIFF(TODAY(),Rent Commencement,Lease Expiration,‘Years’,‘Months’)

lease-formula

Thank you!

Anet Gambina

22 Replies 22

@Andy_Barrows There is an extra parenthesis after the Start Date. You need to remove that. The formula should look like this:

DATETIME_DIFF({Start Date}, TODAY(), 'months')

Thanks for catching that. Clearly I wasn’t on my best proofreading behavior that day. :slightly_smiling_face:

benchappell
4 - Data Explorer
4 - Data Explorer

Hi. Has anyone managed to work out how to calculate total number of hours worked between two dates (multiple weeks sometimes) but only including working hours e.g. Mon-Fri, 0900-1700 ?