Looked up in SAS for dates. I Want it in a YYMMDD fields and the closes i found was the format below. However it generates the dat with dashes
where I would want it like 120317
YYMMDD.
|
19069
|
12-03-17
|
Try format YYMMDDN6.
Do a smart thing and use four digit years, which would be YYMMDDN8.
Try format YYMMDDN6.
Do a smart thing and use four digit years, which would be YYMMDDN8.
You need to very carefully label things in examples. You may not be aware but in one form 19069 could be 10 March 2019 (Julian date notation; or could be 1919, 1819,2119 for the year, 2 digit years are such a pain to keep straight).
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.