Calculating current age with date of birth (taking into account leap years)

Comments

2 comments

  • Rainer Grabowski

    var date = moment(@Part A: Date of Birth);
    var currentDate = moment(@max of TODAYS DATE);
    date != null ? currentDate.diff(date,"year") : ""

    Add that code to a new calculation field. And check if the item where you test it is related to Todays Date.

    0
    Comment actions Permalink
  • Podio Admin

    That worked perfectly thank you.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk