I want to show warning on date field when user fills date manually instead of filling through date picker and the date is incorrect. Suppose user manually enters the date like 35/13/2022 which is an incorrect date. So instead of removing this incorrect date and saving previously updated date, I want to set a warning message while saving the record "please enter correct date".
Current Behavior:- when user enter "32/13/2022" and click on save, it saves previously stored/saved date in database.
Expected Behavior :- when user enter "32/13/2022" and click on save, It should show a warning that date is incorrect.
Note:- I want this warning in all date fields even in default modules.
Do anyone have any idea how to achieve this?