Date calculations

  • jonnavarra
    Asked on September 1, 2015 at 5: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

  • Elton Support Team Lead
    Replied on September 1, 2015 at 9: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:

    Date calculations Image 1 Screenshot 50

    Or with the calculation, here's an example:

    1. Add 2 date fields

    Date calculations Image 2 Screenshot 61

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

    Date calculations Image 3 Screenshot 72

    Date calculations Image 4 Screenshot 83

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

    Hope this helps!

  • jonnavarra
    Replied on September 4, 2015 at 8: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

  • Chriistian Jotform Support
    Replied on September 5, 2015 at 7: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.

  • jonnavarra
    Replied on September 5, 2015 at 8:45 AM
    I think that will make even more better than it is now. Date calculations
    is essential in any app.
    Thanks
    ...
  • Welvin Support Team Lead
    Replied on September 5, 2015 at 2: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