E8601DNw. Format

Writes dates from SAS datetime values by using the ISO 8601 extended notation yyyy-mm-dd.
Categories: Date and Time

ISO 8601

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

Syntax

E8601DNw.

Syntax Description

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

Details

The E8601DN format writes the date by using the ISO 8601 extended date notation yyyy-mm-dd:
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 edn e8601dn.;
Value for edn
Result
1663308532
2012-09-15