How to warn the user in a date filter about the allowed date range

Is there a way to warn or prevent that the user in a dashboard can not select more than 6 months in a date filter?

Here for example I would like to have at least that warning.

Thank you.