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

    Date calculations

    Asked by jonnavarra on September 01, 2015 at 05:13 PM

    I read a posting dated Feb 2014 re: calculation to add 1 month to the current date, which at the time the ability was not yet supported by JotForm.

    Wondering if the request to add the functionality has been implemented? Unable to find in the forum otherwise.

     

    Thanks

    Jon

    calculations date calculations
  • Profile Image
    JotForm Support

    Answered by EltonCris on September 01, 2015 at 09:49 PM

    I can't seem to find the mentioned thread. It's not under your username here.

    Anyway, that's already possible. If you are referring to changing the default date to show one month in advance, here's how:

    Or with the calculation, here's an example:

    1. Add 2 date fields

    2. Create an "Update a form field value" condition like the following:

    Demo: http://form.jotformpro.com/form/52257624629966?

    Hope this helps!

  • Profile Image

    Answered by jonnavarra on September 04, 2015 at 08:24 PM

    Sorry just getting back to this now!

    I was hoping for a more of a accurate way of date calculations, for example to add a year to a date entered on a date field. i would hate to arbitrary add 365 or 366 not checking for leap year or accounting for the precise number of days of a particular month.

    Is the a method that does this already?

    Thanks

  • Profile Image
    JotForm Support

    Answered by Chriistian on September 05, 2015 at 07:41 AM

    Hi,

     

    Unfortunately, this feature is not currently available in JotForm. If you want, we can escalate a feature request for you to our development team. Please confirm.

     

    We will wait for your response.

     

    Regards.

  • Profile Image

    Answered by jonnavarra on September 05, 2015 at 08:45 AM
    I think that will make even more better than it is now. Date calculations
    is essential in any app.
    Thanks
    ...
  • Profile Image
    JotForm Support

    Answered by Welvin on September 05, 2015 at 02:56 PM

    I think our DateString can do that - in the Math Functions (http://www.jotform.com/help/267-Form-Calculation-Math-Function-Reference). I will try to ask our developer about this and let you know. 

    Thanks