How to calculate a dates difference and show the days of the week
- rivieratemporadaAsked 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.
- JotForm SupportMikeAnswered 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.