Date calculations

  • Profile Image
    jonnavarra
    Asked 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

  • Profile Image
    EltonCris
    Answered 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
    jonnavarra
    Answered 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
    Chriistian
    Answered 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
    jonnavarra
    Answered 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
    Welvin
    Answered 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