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: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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