Writes the date from a datetime value using the ISO 8601 basic
notation yyyymmdd.
Category: |
Date and Time
|
|
ISO
8601
|
Alignment: |
left
|
Time Zone Format: |
No
|
ISO 8601 Element: |
5.2.1.1 Complete representation
|
- w
-
specifies the width of the output field.
Default: |
10 |
Requirement: |
The width of the input field must
be 10. |
The B8601DN format writes the date from a datetime value
using the ISO 8601 basic date notation yyyymmdd:
yyyy |
is a four-digit year, such as 2008 |
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 |
put bdn b8601dn.;
Value of bdn |
Results |
1537113180
|
20080915
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.