Added support for a format option in date fields in forms. This controls the format used when mapping the date