B8601DAw. Format

Writes date values by using the ISO 8601 basic notation yyyymmdd.
Categories: Date and Time

ISO 8601

Alignment: left
Restriction: UTC time zone offset values are not supported.
Supports: ISO 8601 Element 5.2.1.1, complete representation

Syntax

B8601DAw.

Syntax Description

w
specifies the width of the output field.
Default:10
Range:8–10

Details

The B8601DA format writes the date value by using the ISO 8601 basic date notation yyyymmdd:
yyyy
is a four-digit year.
mm
is a two-digit month (zero padded) between 01 and 12.
dd
is a two-digit day of the month (zero padded) between 0 and 31.

Example

put bda b8601da.;
Value of bda
Result
18885
20110915
18628
20110101