Previous Page
|
Next Page
B8601DA
w
. 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
Details
Example
See Also
Syntax
B8601DA
w
.
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
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