Added new date class, and format for date in a text field element