• Very interesting this.I want to register the Customer Lifetime Value.Meaning im collecting the Start date for their service (date 1)But as long as they are not churning or ending their service it is ongoing. Therefor my (date 2) is always "now".So how can i get Podio to show how many months and years the customer has been paying. im using this for loyalty coins and celebrations. Can Podio help with that ?
  • Hi Rainer, As you have said I have added values into both date fields but this still does not work. The template won't save and shows the error below, Thanks Manni
  • Hello Manni,the notification is shown cause both date fields are empty. Both must be filled to get a result. If one of the date fields is empty  the calculation field will show nothing (= empty) in the item view. Just save the template, enter dates in that item and you'll see that it works and that it returns a result (for a check: go back to the template, enter a blank space at the end of the calculation (that triggers the code and returns the preview) and you'll see that the preview is ok now)FYI: There are many "error" notifications which give a hint  that for the current item (where you opened the template) this calculation doesn't return a valid result. But those notifications don't mean that the code in general is wrong. If you can save it it likely means, that it doesn't work cerrectly for this item. A tip: If you create a code all involved fields should be filled.Rainer
  • Hey Manni,can you please share a screenshot where I can see the date fields and the calculation field with the error notification? Rainer
  • Hi Rainer, Thank you for that, unfortunately I have tried this and I get the error 'Invalid Date', any idea why this would be? Thanks, Manni Sidhu
  • Hi Manni, var a = moment(@Date of Absence);var b = moment(@Date Returned to Work);b.diff(a,"d") Returns the diffence as number of days.  Rainer
  • Hi, Can anyone tell me how to get this to work between 2 different date fields. For example Date of Absence and Date Returned to Work? Thanks
10 of 13
This question is closed.