Counting days between dates

Answered

Comments

2 comments

  • Mike Cinjee

    I fixt it myself. Whoa after a week trying i asked, and a few hours later it works whoehoe

    This is the solution:

    calculation 1:
    if ( Date2 != null) { ( Date2 - Date1 ) / 86400000} else if (Date3 != null) { ( Date3 - Date1 ) / 86400000} else { (moment() - Date1 ) / 86400000 } ;

    Calculation 2:

    if ( Date2 == null ) {0} else if ( Date3 == null ) { (moment() - Date2) / 86400000 } else { ( Date3 - Date2 ) / 86400000 } ;

    2
    Comment actions Permalink
  • Justin VanDervort

    I would love help with something similar I can't find a solution to yet.  Much more basic.   I have a service date listed in the app.  I want a calculation field to calculate how many days until that service date so that I can use that result for other operations.  Think I could get your help for that? 

    1
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk