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 open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.