What format are you entering the date in that you're seeing this error? Your `DATE_FORMATS` seems to include a format (`%Y-%m-%d`) that doesn't match the HTML5 `pattern` attribute, which is one thing that jumps out.