Max Date Range Validation for Date Fields

Max Date Range Validation for Date Fields

Hello,

I would like to create the following:

A StartDate field and an EndDate field, the maximum date selection should be between 4 weeks. It should not be possible to select more than 4 weeks.

For example:

A user selects January 1st as the StartDate and April 1st as the EndDate: This should not be possible as it is longer than 4 weeks, the user should be informed of this with a message.


Is this somehow possible?