Hi,
I need an 8 character date in order to use the "estudy" package (it's for the "evdate" option).
When i format my date using below command, it shows the date i want in the data editor, but when i highlight the cell and look at the value bar, it displays 9 characters.
format %tdNNDDCCYY eventdate
In short, i need dates stored as 03032006 (which is 8 characters) instead of 03mar2006 (which is 9 characters).
I have tried illustrating the problem in the below image. As you can see, i have also tried to format the variable as a string and then manually replacing all the month names using below command, but "estudy" only accepts date variables.
replace eventstring = subinstr(eventstring,"jan","01",.)
replace eventstring = subinstr(eventstring,"feb","02",.)
etc..
Any advice?
Array
Related Posts with 8 character date
Help with Logit in panel data and measuring a time invariant independent variable.HI statalist, I'm trying to run a panel data regression where the dependent variable is a binary va…
Testing if coefficients are statistically different from each otherHi, I have run the two regressions below. The method variables are different for Dry Recycling and C…
OLS RegressionHey folks i'm writing a term paper about the influence of parenthood on life satisfaction. Since it…
Correlation Data where there is quarterly trendsHi, I would like to find if there is a correlation between Compost and Recycling rates in each loca…
Issue with Levin Lin Chu unit root test and strongly balanced dataHi everyone, I am trying to apply xtunitroot llc on a strongly balanced panel dataset without gaps …
Subscribe to:
Post Comments (Atom)
0 Response to 8 character date
Post a Comment