Calculation of whole Months (Round Down)

  • Profile Image
    kekepikentron
    Asked on August 06, 2014 at 08:41 AM

    Hallo!

    i would like to help me find if there is a way to calculate months (between two pick-a-date fields). But i want the result to be only Whole Months (example: from 14/4/2014 to 13/5/2014 the result to be 0).

    Is there a way to do this?

    Sincerely,

    Timotheos Tsakalos

    www.vouchernews.gr

  • Profile Image
    ashwin_d
    Answered on August 06, 2014 at 09:56 AM

    Hello Timotheos,

    Unfortunately, current math functions we have in our "Form Calculation" widget will not be able to return whole months.

    I would suggest you to download your form's source code and add custom JavaScript to do the whoe months calculation. The following guide should help you in downloading form's full source code :  http://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!