Where did this data come from? How did you get it into SAS.
It looks like you mistakenly read in values in MDY order as if they were in DMY order (or the reverse).
You should probably fix the step that makes the data originally.
If you really do want to switch the month and day when the day is less than 13 then you could do something like:
data want ;
set have;
if day(date) in (1:12) then date=mdy(day(date),month(date),year(date));
run;
PS Your posted data step cannot work. Do not add the hyphens and semicolons into the in-line data lines. Do not use FORMATTED MODE to read the DATE value, use LIST MODE instead.
data have ;
input Employee_Id $ Date :date. ;
format date date9.;
cards;
70202028 04JAN2023
70204018 04SEP2023
70172038 27MAR2023
;