How to Use the Date Limits Option

Last Update: September 1, 2016

Would you like to set limits on your DateTime field? Example, you only want to allow your users to enter dates that fall on a weekend. That is now possible with the new advance option added to the default DateTime field.

1. Add a "DateTime" field by drag and drop. Click the "Properties" icon:


2. In the DateTime Properties, go to the Limits tab.



 

3. Here's the list of options that you can use on disabling dates:

Days of the week 

You can unchecked which day of the week you don’t want your users to select in the date field.Let’s say you only want your users to select dates on weekdays, you can unchecked Saturday and Sunday.

Past & Future 

Simply check the option“Past” if you want to allow users to select past dates from the current one of the user, same goes with the option “Future”, check it if you want to allow future dates to be selected.

Start & End Date 

Disable dates within the range you set up.

Disable Custom Dates 

Here you can disable specific dates. Example of this:

2015-04-21 - one specific date, disable “21st April 2015”.

04-20 – disable this specific date every year, every 20th of April of each year.

19 –disable this specific date of the month. In this case, every  19th of the month of the current year. 

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 set invalid dates. Example, I would like to force users not to enter invalid years like “192”, “1900” or “1720”. What I did is set the date range like this: “0000-01-01>1960-01-01”. 

You can also set Dynamic Date Selections. Similar to a regular expression, an example shown in the screenshot is today+1 which would equate tomorrow or the next day based on the current date of the user.

Questions? Please let us know below.


11 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


Send Comment