{if: difference<0}{else}{error: Pick a date in the future; block=yes}{endif}
It uses datetimediff, the if command, and the error command. If you choose a date that is in the past, or the date is today, it will show an error and block snippet insertion.
If you change the date to a date in the future, it doesn't include an error.
Hi Dylan, thanks so much for that. It does what I need.
However, I need to use the date format "dddd DD MMMM YYYY" so we get a full date with the dayname - like "Thursday 13 June 2024". When I use this date format in your example I get the following error:
Cannot directly convert Thursday 13 June 2024 to a date, try datetimeparse().