It's really easy!
just follow the steps:
1- Create a new blank form.
2- Drag a Date element to the canvas.
3- While the element is selected go to: Properties panel > Element tab > Settings option > and check what the field id is (fld2, fld3...).
4- Open the 'Value rule' category.
5- Press on the 'Set Value rules' button.
6- In operator dropdown choose: Custom.
7- Press on "Configure" button.
8- Copy the following code, change "fld10" with your field id.
* and of course, it goes without saying you can change the code to get a different result.
9- Paste the code in the textarea.
10- Enter a Message that will appear if the filler enters a later date.
11- Press "Apply" and save the form.
12- Now test the form:
- Publish it as URL
- Try enter a date later than today - you will get an error message and will not be able to submit the form until this is corrected.