Hi,
I am using the new Stata14 release, and I am having difficulties with a code that used to work in the previous version of Stata. The code is for exporting quarterly dates variable into excel, so that the output read "2010q1" etc.
export excel using "ExcelOutput.xlsx", firstrow(variables) datestring("%tq")
I have 3 variables: year (YYYY), quarter(Q) and a "date" variable which combines the two and formatted as %tq. Previously, in excel, I would get the correct output, for instance showing:
But with the new Stata, it is doing something different, and the output now is:
Does anyone knows how to solve this? I must emphasize that whilst the excel output is incorrect as above, the date variable appears correctly in the Stata Data Editor. the change occurs only when exporting it to Excel.
Many thanks in advance for your help!
Aurelie.
I am using the new Stata14 release, and I am having difficulties with a code that used to work in the previous version of Stata. The code is for exporting quarterly dates variable into excel, so that the output read "2010q1" etc.
export excel using "ExcelOutput.xlsx", firstrow(variables) datestring("%tq")
I have 3 variables: year (YYYY), quarter(Q) and a "date" variable which combines the two and formatted as %tq. Previously, in excel, I would get the correct output, for instance showing:
date | year | quarter |
2004q1 | 2004 | 1 |
date | year | quarter |
5977q4 | 2004 | 1 |
Many thanks in advance for your help!
Aurelie.
Comment