BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
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 ACCEPTED SOLUTION

Accepted Solutions
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
;

View solution in original post

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
;

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 575 views
  • 2 likes
  • 2 in conversation