I have a string variable dob (date of birth) entered as (mdy) 1/1/49,
1/1/50... and currently stored as %9s. I need to convert these into
dates. I used the following:
. gen dob1=date(dob, "md19y")
. format dob1 %dN/D/Y;
however, this appears to be changing the dates. Any advice?