B8601DNw. Format

Writes dates from datetime 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

B8601DNw.

Syntax Description

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

Details

The B8601DN format writes the date from a datetime 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 01 and 31.

Example

put bdn b8601dn.;
Value of bdn
Result
1631664000
20110915