@Jasminalves wrote:
data new;
set old;
new_date=datepart(old_date);
informat new_date ddmmyy10.;
run;
Attaching an INFORMAT to a variable after the values have already been stored in the variable does nothing. If you want to impact how the value are displayed you need to attach a FORMAT to the variable. Also if you display dates in either DMY or MDY order it will confuse half your audience. Either use DATE or YYMMDD format to display dates and avoid the confusion.
... View more