Hi Team,
When I was trying to execute the program, the values in the columns m_date and c_date , they are coming in dutch language as:
21 februari 2022 and 02 maart 2022
Can anyone suggest me on this.
Thanks & Regards,
Siddhartha
Hello @siddhu1
SAS stores dates with reference to January 1,1960. So it is easy to display the date as per your need.
If you are getting Dutch dates / times then either your system is set to use that time zone or the tz option has been used to set that particular time zone in the code. Using the code example below you can display the date/ time values as per per your needs
option tz='America/Detroit';
data _Null_;
format dt1 datetime20.;
dt1=datetime();
put dt1=;
run;
option tz='Europe/Amsterdam';
data _Null_;
format dt1 datetime20.;
dt1=datetime();
put dt1=;
run;
If you do not want to follow this approach, then discuss the issue with your SAS Administrator / OS Administrator.
Hello,
Let's not forget Dutch is a beautiful language and the Unites States had almost spoken Dutch if history had been a little different. 😉. (I am Flemish / Belgian by the way, but we also speak Dutch)
Apart from that ...
Check if your numeric variable has a Dutch (European) date format, like :
* EURDFWKXw. Format
* EURDFWDXw. Format
* EURDFDWNw. Format
Also check the value of your LOCALE= option.
And run this code (and check the LOG):
proc options GROUP=LANGUAGECONTROL ;
run;
Koen
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.