The DateTimeType enumeration describing the type of field. The default is DateField indicating the field will contain a date.
control.FieldType [= DateTimeType]
DateTimeType. Gets or sets the enumeration value describing the type of field. The default is DateField indicating the field will contain a date.
To set the FieldType of a control, click on the right side of the property and choose one of the options in the drop-down box.
| Setting | Description |
|---|---|
| DateField | (Default) The field is a date. |
| TimeField | The field is a time. |
| TimestampField | The field is a timestamp (date and time). |
The format of the field will depend upon the FieldFormat property value. See FieldFormat for examples of each combination of FieldType and FieldFormat value settings.
DateTimeField Class | DateTimeField Class Members | DateTimeType Enumeration | FieldFormat Property