Add support for form field format

This PR renders the format supplied for form fields such as date and datetime.