Best answer

Find difference between two dates

  • 22 March 2021
  • 2 replies
  • 456 views

I need to know the difference between two dates as a number to use that to add to another date extending it’s duration. 

 

Use case is as such: 

  1. Customer has membership ending date XX/XX/2021
  2. They purchase another year of membership
  3. We need to know the difference between today's date and their end date
  4. Then add that to the 365 days they’ve bought to give us their new expiration date

 

I’ve stared at the formatter for a while but you can only use it with written expressions (i.e. +50days) to change a date rather than mathematical operation using two dates. Conversely the numbers utility won’t work with a date format. 

I’ve had some kinda ideas but they all get very task heavy quickly so would be incredibly grateful if anyone has a solution to this! 

Cheers!

icon

Best answer by Troy Tessalone 22 March 2021, 16:53

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

@Troy Tessalone awesome cheers, clearly I did not search in the community properly to find those ha! 

 

Thanks for linking me. 

Userlevel 7
Badge +14

Hi @Zacary 

Check out these related Community Topics: