Dear collegues,
I had to create some new date variables in Excel and would now like to transfer them into stata.
Having tried several formatting options, I did unfortunately not succeed in being able to work with the data.
As proposed in the Stata manual:
. gen statadate = exceldate + td(30dec1899) . format statadate %td
I did:
gen date_bc_pos = date_posbc_cand + td(30dec1899)
I am using Excel for Windows and Stata Version 13.
Do you have any advice on how to convert the date data into the correct stata format.
Many thanks,
Yvonne Schmiedel
I had to create some new date variables in Excel and would now like to transfer them into stata.
Having tried several formatting options, I did unfortunately not succeed in being able to work with the data.
As proposed in the Stata manual:
. gen statadate = exceldate + td(30dec1899) . format statadate %td
I did:
gen date_bc_pos = date_posbc_cand + td(30dec1899)
I am using Excel for Windows and Stata Version 13.
Do you have any advice on how to convert the date data into the correct stata format.
Many thanks,
Yvonne Schmiedel
Comment