Hi guys,
I'm trying to remove time from dates.
The situation is the following:
I tried to use the following code:
data my_data_corrected;
set my_data;
Date_Value = input(date, anydtdte.);
Date_Only = datepart(Date_Value);
format Date_Only date9.;
run;
Unfortunately it seems not to work I suppose because of the presence of blanks.
Could it be the case?
After running the code dates are converted as follows: 31DEC1959.
Can anyone help me please?
Note: the variable "date" is stored as Num, DATETIME20.
Thank you in advance