maxlength added to date field