Previous Page
|
Next Page
B8601DN
w
. 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
Details
Example
See Also
Syntax
B8601DN
w
.
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
See Also
Working with Dates and Times by Using the ISO 8601 Basic and Extended Notations
Copyright © SAS Institute Inc. All rights reserved.
Previous Page
|
Next Page
|
Top of Page