BookmarkSubscribeRSS Feed
WtotheW
Calcite | Level 5

Hello wizzards!

 

I am stuck trying to translate a Dutch date format to a SAS formatted date. Is it possible to translate data formatted like in the table to the DDMMYYD10. format? Preferable in the query builder but SAS script is also helpful.

 

19 mei 2029
21 jul 2046
24 jun 2042
23 aug 2034
04 jun 2038


Help is appreciated! 

 

Thanks in advance.

1 REPLY 1
Kurt_Bremser
Super User

Use your locale, and the NLDATE informat:

options locale = nl;

data want;
input date nldate11.;
format date yymmdd10.;
datalines;
19 mei 2029
21 jul 2046
24 jun 2042
23 aug 2034
04 jun 2038
;

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 336 views
  • 2 likes
  • 2 in conversation