What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    Calculation of whole Months (Round Down)

    Asked by kekepikentron on August 06, 2014 at 08:41 AM


    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?


    Timotheos Tsakalos


  • Profile Image
    JotForm Support

    Answered by ashwin_d 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!