I only find how to validate it as 3 distinct fields:
... { date => ['year', 'month', 'day'] } => ['DATE'], ...
But now I want to validate them as a whole(stored in a single <input type="text" name="date" />) in the format xxxx-xx-xx, how to do that?
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |