Datetime (value of type)

From JRapid

Jump to: navigation, search

datetime is a value of type.

Contents

Description

datetime is used for representing temporal values. datetime is used when you need values that contain both date and time information.

This input expects the date and time information to be entered using a dd/MM/yyyy HH:mm format.

The default widget assigned to this type of properties is an input box, but you can check the widget add-ons for convenient extensions for these data type.

Usage

<property
   ...
   type="datetime"
/>

Example

Setting the type attribute is enough to make use of this data type.

<entity label="Flight" name="Flight">
        <property display="primary" label="Number" name="flightNumber"/>
        <property display="secondary" label="Time" name="flightTime" type="datetime"/>
</entity>

The following image shows a valid value being entered for the datetime property.

Datetime example‎

See also

Personal tools