When using Struts to check the Date, you must configure the date of format DatePattern, and the MM and DD in the format must be two, but the location can be interchangeable, such as: MM-DD-YYYYY.
datepattern var-name> YYYY-mm- DD var-value> var> field>