Hello everyone, I'm brand new to learning STATA, so I apologize if I am omitting any pertinent information. I have looked through previous posts on this topic, but am having trouble understanding how to code it.
I am attempting to extract the year from the date listed.
The data is currently listed in this format: testdate is 2012-03-12 00:00:00
I would like to simply create a new column with the year from the testdate column.
I really appreciate the help.
Thanks.
Lori
Related Posts with Help Extracting Year from Date
Currency conversion for several time periodsHello everyone, I would like to translate one of my variables (ValueUSD) into values in EUR, depend…
Can I use Likliehood Ratio Test to choose Double Hurdle Model over Tobit?I am trying to analyze the determinants of the intention to grow an a certain variety of maize in Za…
Interactive Year Fixed EffectsHello, I have a regression of the form: xtreg yvariable c.xvariable#i.year c.xvariable i.year `cont…
Technical indicatorsHi, I am trying to replicate three technical indicators as done in the paper Neely et al. (2014) to…
Local Vs. GlobalHi everyone! I'm a grad student with a few years of experience with Stata. In all my courses that us…
Subscribe to:
Post Comments (Atom)
0 Response to Help Extracting Year from Date
Post a Comment