How to count days between two dates in a contact form?
-
Hi,
I have created a booking form in my car parking web site, where the customer can select a check-in date and a check-out date, then select the type of car (small car 20€ per day, medium car 25€ per day, big car 30€ per day) from an item list field. The total price (number of days * 20 or 25 or 30€) should be calculated and showed in another form field, before to push the “Book” button in the form.How could I do this using your plugin?
How I can adapt your example here below in order to get the startDate and endDate values from the check-in and check-out dates field of the booking form?
[TotalDatetimeDifference startDate=”now” endDate=”25.08.2025″ format=”d”]I am going crazy, but I finally have found your plugin at least. I hope you can help me on this.
Thank you in advacne!
- The topic ‘How to count days between two dates in a contact form?’ is closed to new replies.