Few users are getting Error Message "Date cannot be greater than today" when entering a date from past year in the Date variable.


Description

Few users are getting the Error Message "Date cannot be greater than today" when entering a date from past year in the Date variable.  


Generic scenario:

1. Date format of the user was set to MM-dd-yyyy & the system format was set to yyyy-MM-dd.

2. User is submitting the catalog item on January 5th 2021, And if he selects the future date January 10th 2021. He should get the error message as "Date cannot be greater than today" ===> Expected

3. But even if the user selects a date from December 10th 2020, (Which is the past date), Still user is getting the same error message - "Date cannot be greater than today".

Cause

The date format of the user is not matching with the system format.

Resolution

To fix the issue, We can either set the Date format of the user to match with the system date format.

OR

We can leave the Date format field blank.