Entering content frame

 standard_date_mask 

Syntax Rules for Describing the Data Stream

Syntax

<standard_date_mask> ::= EUR | INTERNAL | ISO | JIS | USA

YYYY

Year (four digits)

'MM'

Month (two digits, 01-12)

'DD'

Day (two digits, 01-31)

 

Format

General Form

Example

EUR

'DD.MM.YYYY'

'23.01.2003'

INTERNAL

'YYYYMMDD'

'20030123'

ISO/JIS

'YYYY-MM-DD'

'2003-01-23'

USA

'MM/DD/YYYY'

'01/23/2003'

Day and month entries must have two digits. In all formats except INTERNAL, the year must have two or four digits. In the format INTERNAL, the year must have four digits.

Use

Use the standard date definition to specify the format for plain-text values in which DATE columns are entered and displayed.

The default value in the Loader is INTERNAL.

·        If you use this standard date definition in the SET command, then you also specify the date format for all subsequent commands. In a single Loader session, this applies until a new SET command is executed.

Date format in the SET command

SET DATE ISO

·        You can change the specified date format for individual commands. For more information, see Date Format.

Date format in a command

CREATE TABLE d_test (col1 DATE)
//
INSERT INTO d_test VALUES (DATE)
//
DATAEXTRACT * FROM d_test
OUTSTREAM 'd_test.data'
DATE ISO

Example for the content of the target data stream
?2003-05-15?

 

Leaving content frame