Documentation

Docs / Development / DateTime Field

DateTime Field

DateTime is a Field that stores a date and a time value.

Field Handler

Usage in CTD:

<Field name="CreationDate" type="DateTime">
...
</Field>

Supported Field Controls

DatePicker Field Control: a simple grid displaying a clickable calendar in month view

Configuration

The following properties can be set in the field’s configuration:

For a complete list of common Field Setting configuration properties see CTD Field definition.

Example/Tutorials

Fully featured example:

<Field name="MyDateTimeField" type="DateTime">
  <DisplayName>My DateTime field</DisplayName>
  <Description>DateTime content</Description>
  <Configuration>
    <DateTimeMode>DateAndTime</DateTimeMode>
    <Precision>Second</Precision>
  </Configuration>
</Field>

The above example configures the DateTime field so that:

Is something missing? See something that needs fixing? Propose a change here.