Writes the date part of a SAS datetime value as the year in the form yy or yyyy.
Category: | Date and Time |
Alignment: | Right |
Statements
|
Results
|
---|---|
|
----+----1 |
select put(1678898894,dtyear.); |
2013 |
select put(1678898894,dtyear2.); |
13 |
select put(1678898894,dtyear3.); |
13 |
select put(1678898894,dtyear4.); |
2013 |