In the same variable I have dates in the format YYYY-MM-DD and YYYY-MM-DDTHH:MMS
I want to convert the date part of these values to a SAS date. Can I do this with 1 informat or do I have to do some data driven preprocessing to discard the time information in records that have a time part ?
Example (with 2 different informats, depending on the data):
FORMAT sasdate date9.;