B8601DNw. Informat

Reads date values that are specified using the ISO 8601 basic notation yyyymmdd and returns SAS datetime values where the time portion of the value is 000000.

Categories: Date and Time
ISO 8601
Alignment: Left
Alias: ND8601DNw
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 input field.

Default 10
Requirement The width of the input field must be 10.

Details

The B8601DN informat reads date values that are specified using the ISO 8601 basic date notation yyyymmdd and returns the date in a SAS datetime value:
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

input @1 bdn b8601dn.;
Data Line
Result
----+----1
20120915
1663286400