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?
Analysis of multiple outcome measurements with censored dependent variablesOur working group has a data set that contains about 10 measured urinary pesticides or their metabol…
Advice on backtesting when an interaction is significantHi all, Currently in the works of writing my thesis where one of the regressions is the following: …
catplot with "empty" categoriesI'd like to plot the response percentages to a question using catplot or tabplot. However some of th…
Graph legend(off) does not work Hello, I have health expenditure data for 20 countries covering 1971-2019 which looks like below. …
coefplot line colorHi I was wondering how I can change the color of a graph line generated by coefplot. here is my code…
Subscribe to:
Post Comments (Atom)
0 Response to How to extract month from an iso date?
Post a Comment