SAS Specific Date Format
I found several questions regarding SAS dates on this forum, but I could not find an answer to this question. I think this is quite simple, but I cannot figure it out.
I have a dataset with a date (DD-MM-YYYY) that has a character format for some reason. I would like it to be converted to date format (YYYY-MM-DD). I can make it "look" straight by splitting and concatenating the parts, but then I cannot get the format right.
+3
E_T
source
to share
1 answer
Use the input () function with the appropriate information:
datevariable=input(textvariable,ddmmyy10.);
+5
Vicky
source
to share