The variable is recorded in month&date format as in 11985 (for January 1985) and 122018 (December 2018).
I want to create a new variable that just records the years from 1985 thru 2018.
I tried todate command -
Code:
todate HIVTSTD3, gen(hivtestdate) p(mmyyyy)
I will appreciate any help to accomplish this.
thanks - cY
0 Response to Extract Year from Date (11985 - 122018)
Post a Comment