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

    How to calculate a dates difference and show the days of the week

    Asked by rivieratemporada on June 08, 2017 at 02:40 PM

    Dear Support, good afternoon,

     

    In the "Checkin Checkout" Widget I want to get the number of days between the 2 dates and the day of the week of each of the dates. How to make ? Thank you.

  • Profile Image
    JotForm Support

    Answered by Mike on June 08, 2017 at 04:58 PM

    Thank you for contacting us.

    1) To calculate the number of days:

    - Use the Date Picker fields.

    - Calculate the dates difference using a Form Calculation widget field.

    2) To get a day of the week:

    - Use the Form Calculation fields.

    - Check In Date should receive a date with a dateString function (see this guide).

    - You will need to add an 'Update / Calculate Field' condition for each day.

    etc.

    Test form:

    https://form.jotformpro.com/71585997706980

    You can clone it to your account to check the backend.