Date
Date interprets an entered value based on the page's locale, and internationalizes it for storage in a database. For example, if you have set the locale to English (US), then the date 1/6/2008 will be interpreted as the sixth day of January 2008. However, if your locale is English (UK), that same date will be interpreted as the first day of June 2008. Since web sites are an international medium, this is a serious issue. So the default format for the date datatype is calendar. Visitors can pick a date, reducing confusion. It is also a good idea to specify the date formatting you are expecting, for example: (year-month-day). The structure, request.terraform.locale contains a range of localization data. You can vide it with cfdump or by turning your form's debugging on with the cf_terraform debug attribute. request.terraform.locale.shortDateHint is particularly useful: this is a human-friendly guide to the date, e.g. day / month / year.
To change the localization setting of your form, use the ColdFusion fnction SetLocale(). Another option to consider is dynamic client locale evaluation, whereby TerraForm sets the locale of the form based on the client browser settings. Thus a visitor in the US can enter 1/6/2008 and a visitor in Sweden can enter 2008-1-6 and both will be internationalised as {ts '2002-01-06 00:00:00'} (the standard CF date format). You can set TerraForm to do this using the cf_terraform DynamicLocale attribute.
Examples
Fields marked with * are required.
