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
How to Reduce Rows by Collapsing Repeating DatesI'm trying to create an appropriate time series from the below data. The dates repeat because of the…
How do I get time difference (gap) in second?I have a dataset like this Code: * Example generated by -dataex-. To install: ssc install dataex cl…
Help!!! Convergence error in calculating of productivity by SFA - "Kumbhakar, S.C, 2015"Hi everyone, I am calculating total factor productivity by the SFA model in using STATA. When I ru…
PPML extraction of standard errors matrix of fixed effectsDear @Joao Santos Silva As PPML produces robust standard errors, I am wondering how I can extract t…
text file without the .txt extensionHi Stata Users. I have multiple text file but without .txt extension. As I have many files I do not …
Subscribe to:
Post Comments (Atom)
0 Response to Help Extracting Year from Date
Post a Comment