Dear all,
I am very new to Stata.
I want to convert the numeric date variable "cdint" (type: long, format: %tdD_m_Y) to a string variable.
It currently looks like that: cdint
25 Jan 07
29 Jan 07
13 Jan 07
29 Jan 07
04 Feb 07
24 Jan 07
01 Feb 07
13 Jan 07
26 Jan 07
21 Jan 07
25 Jan 07
13 Jan 07
15 Jan 07
14 Jan 07
12 Jan 07
23 Jan 07
05 Feb 07
27 Jan 07
27 Jan 07
13 Jan 07
12 Jan 07
I tried to destring it and use the date command but Stata always generates missing values.
destring cdint, replace
gen date = date(cdint, "DMY")
(3,176 missing values generated)
0 Response to Converting numeric date variable to string variable
Post a Comment