Date picker validation


So I am using the javascript/jquery to create a date picker field. (… )

How do I go about updating the javascript to prevent a user from selecting a date in the past?


Disregard…I figured it out.


I have the same problem. How did you get this sorted ?


Hi @Akshada try adding

minDate: 0

to the datepicker function. Setting the minDate value to 0 will prevent anyone from picking a date in the past.

Hope this helps!


Hi @Rob
Is there also a solution for pre-selecting a total timeframe?
For example if there is a promotion just for the next 3 weeks, I want the participants to choose a time just within this timeframe. what do I need to set as maxDate?