Workbench User Guide : C. Data Format Templates : Date Format Templates : Define a Date Template
 
Share this page                  
Define a Date Template
You can define a date template using the Property Inspector.
To define a date template
1. Open the frame or frame template in the Frame Editor and select the field for which you want to set a date template.
2. Click the DataType property in the Property Inspector.
The Data Type dialog appears.
3. Select Date as the base data type.
4. Click OK.
5. Click the DefaultValue property, and then select DV_STRING from its list of options.
6. Click the FormatString property, enter a date template in its entry field (for example, 2/ 3/07), and then press Enter.
For more information about and examples of specifying date templates, see Absolute Date and Time Format Templates and Time Interval Format Templates.
7. (Optional) Set the InputMasking property to TRUE.
For more information about how input masking affects the end user's interaction with the template, see Input Masking and Date Templates.