Top
PowerCOBOL V11.0 Reference
FUJITSU Software

4.82 DateStyle Property

Description:

Indicates the date style to be used.

Used in:

Control

Print

Object

RenderText

Values (with constants):

0 - Month dd yyyy(POW-DATESTYLE-MONTHDDYYYY)

1 - yyyy/MM/dd(POW-DATESTYLE-YYYYMMDD-SLASH)

2 - yyyy.MM.dd(POW-DATESTYLE-YYYYMMDD-PERIOD)

3 - MM/dd/yyyy(POW-DATESTYLE-MMDDYYYY-SLASH)

4 - MM.dd.yyyy(POW-DATESTYLE-MMDDYYYY-PERIOD)

5 - Mon dd yyyy(POW-DATESTYLE-MONDDYYYY)

99 - Custom(POW-DATESTYLE-CUSTOM)

When the value is 99, you can specify another date style in the DateFormat property.

RenderText

It is only effective when the RenderStyle property is "2 - Date"

The RenderText object converts a character string of the form "yyyyMMdd", or as defined by the InputFormat property, to the style indicated by the value.

For example, if there is no InputFormat set, entering "19981231" with the value 5 (Mon dd yyyy), would display as "Dec 31 1998".

Default value:

Print

5 - Mon dd yyyy(POW-DATESTYLE-MONDDYYYY)

RenderText

0 - Month dd yyyy(POW-DATESTYLE-MONTHDDYYYY)

COBOL picture:

S9(4) COMP-5

OLE data type:

VT_I2

Design time access:

Set and reference.

Execution time access:

Print

Set and reference.

RenderText

Reference only.

Backward compatibility attribute:

None.