In my app, the user selects date from a datepicker and the date is then displayed in the input in a format that corresponds user's locale.
提交表单时,我想验证各自的日期,但是验证器不知道提交日期的日期格式.
My question is whether I should mutate the date into Y-m-d before it is passed to validator or is there a way I can tell the Validator the right format to validate in?