Date and time format

The Oracle date and time format for both input and output is:

ccyy-mm-dd hh24:mm:ss[.6-6]

If the group format is fixed, the field is padded to 19 with trailing spaces.

Formats

Format
Description
cc
two-digit century
yy
two-digit year
mm
two-digit month
dd
two-digit day
hh
two-digit hour
mi
two-digit minute
ss
two-digit second
.fff...
optional fractional seconds
ffffff
six-digit fraction of a second
hh24
two-digit hour using a 24-hour day

An example is 2001-08-27 23:00:00, which specifies August 27, 2001 at 11:00 PM.

For the DATE column type, there are never fractional seconds; hence, the width of the field is always 19. For the TIMESTAMP and TIMESTAMP WITH LOCAL TIME columns, the precision of the fractional seconds is determined by the column definition.

In the Generate Type Tree from dialog, use the Represent date/time columns as text items check box to define whether to automatically format this information as Date & Time (which is with this check box disabled, the result of which is shown in the Item Subclass, Presentation column) as a text string. When generated as a text string, it might be necessary to use either the TEXTTODATE or TEXTTOTIME function in a map rule to convert the text string to the date and time format required by the database. If you are generating new type trees, it is recommended that you disable this check box.

This Represent date/time columns as text items check box is modal. After it has been disabled, it will remain disabled for all subsequent type tree generations, regardless of source. Therefore, you must be careful in determining this setting.