Have an HTML5 pattern check on date fields.