Hi all,
Is it possible in SAS to convert a Dutch datetime like this one:
09 oktober 2018 16:50:10 uur
To a SAS date like: 21466
or to SAS seconds like this: 1854723010?
I tried datepart(my_date_variable) but no luck..
Any help?
Thanks in advance.
@MijnSGS2 wrote:123 data _null_; 124 options locale=Dutch_Netherlands; 125 y=input('09 oktober 2018 16:50:10 uur', nldatm30.); 126 put y= y=datetime22.; 127 run; y=1854723010 y=09OCT2018:16:50:10
Hi all,
Is it possible in SAS to convert a Dutch datetime like this one:
09 oktober 2018 16:50:10 uur
To a SAS date like: 21466
or to SAS seconds like this: 1854723010?
I tried datepart(my_date_variable) but no luck..
Any help?
Thanks in advance.
Do you have access to the raw datetime value in the source?
@MijnSGS2 wrote:123 data _null_; 124 options locale=Dutch_Netherlands; 125 y=input('09 oktober 2018 16:50:10 uur', nldatm30.); 126 put y= y=datetime22.; 127 run; y=1854723010 y=09OCT2018:16:50:10
Hi all,
Is it possible in SAS to convert a Dutch datetime like this one:
09 oktober 2018 16:50:10 uur
To a SAS date like: 21466
or to SAS seconds like this: 1854723010?
I tried datepart(my_date_variable) but no luck..
Any help?
Thanks in advance.
My oh my @data_null__ Sir, is there anything that you do not know about. Jeez, can't believe that knowledge transcends geography info. Hats off!
@novinosrin wrote:
My oh my @data_null__ Sir, is there anything that you do not know about. Jeez, can't believe that knowledge transcends geography info. Hats off!
@novinosrin It is all about the documentation. I know SAS has national language support and that I needed an in-format. I copied the example and used @MijnSGS2 data.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.