adds date formatting support
adds automatic maxlength support