How to convert a given date value into SAS date

Answer Posted / sheetal

data temp;
date='17/12/2009';
m=substr(date,4,2);
d=substr(date,1,2);
y=substr(date,7,4);
d1=mdy(m,d,y);
format d1 mmddyy10.;
run;

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

2010


What does PROC print, and PROC contents do?

733


What do you understand by the term Normal Distribution?

573


Tell me more about the parameters in macro? : sas-macro

596


What are pdv and it functions?

606






How do you connect the desktop application to metadata server? : sas-grid-administration

589


Hi Friends, Am Priya,new to your forum. am looking for Interview questions on SAS Platform Administration. I searched everywhere but I couldn't find them,please can anyone help me with complete interview questions normally everyone will face in the interviews on SAS Administration. am really facing problems in the interviews,am not able to answer any of their questions. I would really appreciate all your help if you can email the complete Interview Questions to priyafeb84@gmail.com Kindly awaiting for your reply with eager

1616


What are the implications?

1185


what are the types of interactive display types? : Sas-bi

657


What is the use of divide function?

611


What is the command used to find missing values?

595


Tell e how how dealt with..

1777


describe about physical data integration? : Sas-di

563


i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

1848


Explain what is SAS informats?

627