I have a date in the following iso format:
ISODATE
2017-09-01 10:43:04.000
The format is Stata is: %tcCCYY-NN-DD_HH:MM:SS.sss
I'm trying to extract out the month but haven't been able to make it work.
I tried various forms such as:
gen month=month(ISODATE)
Appreciate some help here. thanks.
Related Posts with How to extract month from an iso date?
Checking Parallel Trends assumptionGood Afternon everyone, I am writing this post in order to receive some help with the verification o…
ResultsHi, I am dealing w/ panel data and am running 3 regressions based on a dummy variable that indicate…
Marginsplot: logit regression, IV is continous and moderator is a dummyDear Statalist, I run a logit regression and my IV is a continuous variable (average: -1.5, min: -2…
Creating one year lagged variable for law ( state by year panel data)Hello stata community, I have a panel set of law effective data for state by year , and I need to c…
GSEM identify latent classesI am trying to learn latent class models. I don't know much about them. I'm trying to figure out how…
Subscribe to:
Post Comments (Atom)
0 Response to How to extract month from an iso date?
Post a Comment