Date picker question(s)

User 362156 Photo


Registered User
47 posts

Hi,

I'm currently working on a form through wich our clients will book transfers to and from the airport. The form will be pretty straight forward: the client indicates the airport, fills out the address of the hotel, the number of passengers and gives us the dates for the transfers (test version: http://formulier.coffeecup.com/forms/transferformulier/). I have found out how to tweek the jquery.datepicker.js to use Dutch translations for month, day of the week etc, but I'm still struggling with a few questions:

1. Is it possible to change the date format in such a way that it also mentions the day of the week (e.g. monday 22/08/2013 instead of just 22/08/2013)? Occasionally clients make mistakes and we want to be absolutely sure that we are talking about the same day of the week.
2. Is there a way to validate that the return date is later than the arrival date?
3. There should be at least 48 hours between the date of the booking of the transfer and the first transfer. Is the some way to add this validation as well?

I have been searching the internet for jquery scripts that could do this, but have found anything yet.

Thank you for your help!

Johan
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

I don't see any date picker on that form.;)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 362156 Photo


Registered User
47 posts

Sorry, it will only appear after you have selected an airport to/ from which you want to book the transfer. As first lesson in Dutch: select an option from the picklist "vliegveld" . "Datum" = date.
:cool:
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Looks to be that you'll have to take a different approach. I wonder if you could apply the date picker to a regular expression?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 362156 Photo


Registered User
47 posts

Do you mean that a regular expression should care of the D + 2 request and another verifies the departure date to be after the arrival date?
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

How about two date pickers or have them pick a day of the week to help confirm the proper date.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 362156 Photo


Registered User
47 posts

Eric, I'm already using 2 datepickers, 1 per transfer. Question is how to make sure the client doesn't accidentally select a returndate before the arrival. Same with a separate picklist with the days of the week (but less important): if the date and the day of the week are not linked, clients could make mistakes.
I will look into the regular expressions this weekend.
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

You can set the date range in the form builder under the elements properties.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.