How do I set the default date to today, using Contact Form 7?
The minimum date can be set easily with min:today
. When you click on a datepicker you can choose dates from today.
But the default date (before picking) is not today’s date. The date is displayed like 2016/mm/dd or whatever date format.
Yes, I added a script
And than call it in:
You can also use relative date/time functions supported by the DateTime class. So, adding “today” works to set it as a default date. (Specifying a Date with Relative Date Formats)
I found:
Also, Don’t Forget to add the library at first:
I have called it as:
You can use
min:today
without using JavaScript or Jquery functions, see: date field