How to Use the Date Limits Option

Last Update: July 16, 2017

Would you like to set limits on your Date Picker Field? Example, you only want to allow your users to enter dates that fall on a weekend. That is now possible with the new advanced options added to the default Date Picker Field.

First, add the DATE PICKER field to your form then click the GEAR icon.

In the properties section, go to the LIMITS tab.

And here's the complete list of options that you can use on disabling dates:

1. Past & Future

Check the PAST option if you want to allow users to select past dates, same goes with the FUTURE option, check it if you want to allow future dates to be selected.

2. Days of the week

 

Unchecking a day will disable all of the same days in the calendar. You can uncheck which day of the week you don’t want your users to select in the date field. So, to only allow weekdays, uncheck Saturday and Sunday.

3. Start & End Date

Disable dates within the range you set up. This will only allow selection between the dates you selected.

4. Disable Custom Dates

Here you can disable specific dates. The correct format is YYYY-MM-DD but you may also use MM-DD or just DD.

Examples:

2017-07-30 - Disable July 30, 2017

07-01 - Disable July 1 each year

15 - Disable the 15th of each month 

5. Disable Date Ranges

This is similar to the "Start & End Date", but this allows you to set multiple date ranges to disable. This is also a good way to filter out invalid dates. Example, I would like to force users not to enter invalid years like "192", or years that are way in the past "1900" or "1720". What I did is set the date range like this: 0000-01-01>2000-01-01 so users can only select dates from 2000-01-01 onward.

You can also use Dynamic Date Selections. You can achieve this by utilizing the Start & End Date limit and use today+x (where x is the number of days to be added to today).

Say, you're working on a booking form and would like to limit the booking dates to be at least 1 week after submission, and at the same time, you want to limit the booking window for just 1 week. For this to happen, you need to set the Start Date to today+7 (1 week after) and the End Date to today+13 (a window of just 1 week).

Here's the result, given that today is July 16:

Comments and suggestions are welcome below. If you have a question, post it in our Support Forum so we can assist you.


21 Comments...


   
swamprabbitcafe (May 27, 2015 at 09:21 AM)

Thank you for this improvement. I would like to be able to limit date selection to "today+6" ... in other words, users can't select a date until it is 6 days from the current day.
I can do this in the form validation, but I can't seem to do it in the datetime limit functionality.
Thanks!

View Answer


   
samanthacrawford (July 15, 2015 at 09:27 AM)

Hi, I have been trying to restrict my form so that only weekdays can be selected, in addition to dates which are more than 2 weeks in the future. Unfortunately, neither of these seem to work. Is this a global issue or am I the only one experiencing this issue?

View Answer


   
jewelryislove (August 08, 2015 at 11:35 AM)

Hi, I wanted to restrict my form so that only the next 7 days can be chosen and all future dates after that disabled. Is this possible?

View Answer


   
Catteralls (August 10, 2015 at 02:57 PM)

Hi, if i have 2 fields ('Departure Date' and Return Date), is there a way of limiting it so that only dates on the same date or after can be selected in Return Dates? So you'd effectively be setting a disable dates before 'Departure Date'?

View Answer


   
cantinacaprai (August 23, 2015 at 11:57 AM)



hi, from yesterday my Disable Date Ranges is not working for me.

i use this code "today>today+1" to remove the tomorrow selection.



it was fine until yestarday

View Answer


   
pixelauthor (December 09, 2015 at 02:35 PM)

I'd like to be able to disable every OTHER Thursday from a start date. I know I can compile a list of those dates manually, but is there an easier way?

View Answer


   
varshavan (January 18, 2016 at 04:02 AM)

Hi, I have been trying to restrict booked dates on my form so that only available dates can be selected, Unfortunately, neither of limit dates option on date picker property seems to work. Is there a global issue? its not working on preview also. I am using Chrom browser.

View Answer


   
SVDCForms (July 20, 2016 at 09:03 PM)

Just to be sure, if I use the following expression:
today-7671>today
I will be limiting date entry to at least 21 years ago, correct? I'm trying to ensure that applicants are at least 21 years old.


   
lnn (August 09, 2016 at 11:11 AM)

hello,
My disable date are not working. For example, I would disable today+9>today. How can i do that?
Thanks

View Answer


   
aramosacevedo (October 07, 2016 at 12:52 PM)

i want to limit dates between today and 1999 what is the formula for this

View Answer


   
lvacademy (November 03, 2016 at 05:25 PM)

Is it possible to limit to weekdays only? I disabled weekends, but I need the form to only allow them to choose a date that is 3 days from today. This works out great, except if they choose a Thursday, it lets them choose Monday. I'm thrilled to have this as an option so thanks for that!

View Answer


   
media09 (December 06, 2016 at 03:10 PM)

Is there any way to set-up a simple date range in one field? For example:
Start Date: MMDDYYYY End Date: MMDDYYYY

View Answer


   
klausdyba (February 03, 2017 at 04:52 AM)

Is there a way to do this for time? I want to reduce the times which are able to select. not 0-24 but for example 8-12 only for start time

View Answer


   
PDQ_Printing (March 02, 2017 at 02:32 PM)

I need the date picker only to allow dates that are 3 business days in the future. As it is now, if someone submits an order on a Friday, the DatePicker allows them to choose Monday, when it should be Wednesday. I need the DatePicker to skip over the weekend when counting 3 days. Is this possible?

View Answer


   
sandiseni (April 02, 2017 at 01:14 PM)

Hello, is it possible to add a function where I can set a limit of bookings per date. For example maybe I only wanna take ten bookings per date nothing more

View Answer


   
JMCommunication (April 22, 2017 at 01:31 PM)

I used Disable Date Ranges "today-19" but it doesnt work

View Answer


   
aorner (May 15, 2017 at 02:24 PM)

My data selector limits to only Saturdays, aka "Week Ending Date". How can I limit to the previous 4 'week ending dates' and future week ending dates? For example, if today is 5/15/17, I would expect possible data selections to be 4/22/17, 4/29/17, 5/6/17, 5/13/17, and all future week ending dates (5/20/17, 5/27/17, etc). In this example, user would not be able to select 4/15/17, 4/8/17, and prior.

View Answer


   
wsrhodes (May 21, 2017 at 11:32 AM)

Start & end date doesn't work. I put in 1/1/1985 - 12/31/2006. When I use the form ANY date I enter is accepted. Why??
form: https://form.jotform.us/71165312076147

View Answer


   
knuivert (June 21, 2017 at 08:55 AM)

Hi,

In the settings you can disable the past dates, but is it possible to disable the present day for the second user who's filling in the form today? So, user 1 that fills in the form today can choose today and send in the form. User 2 that fills in the form today can select a day starting by tomorrow. Thanks already for your answer.

View Answer


   
JessieJay (June 28, 2017 at 02:54 AM)

Bonjour,
Peut-on limiter les créneaux horaires svp? Si cela est possible, comment faire?
Merci.

View Answer


   
eelcoschuller (June 29, 2017 at 05:09 AM)

Hi,
I'm wondering what options there are in the 'Dynamic Date Selections' this article talks about.
Does it only support combinations with 'today'?

I'm looking to exclude wednesdays in even weeks, and thursdays in uneven weeks.
Hope that's possible!

Thanks

View Answer


Send Comment