various date and date-time fields imported as character ($18.) date 1 44474.44181712963 44474.49334490741 44474.52622685185 44475.32769675926 44476.46425925926 wrote this code to convert to the character string to a date format, however they all come back as missing (.). data Enrollment1_R2_&V; set Enrollment1_R_&V; SurveyDT=input(strip(qdate), mmddyy10.); ConsentDT=input(strip(consent_date), mmddyy10.); EnrollmentDT=input(strip(Enrollment_date), mmddyy10.); DOBDT=input(strip(dob), mmddyy10.); format surveydt consentdt enrollmentdt dobdt mmddyy10.; run;
... View more