Hi,
How can I convert strings like "01/03/1997", e.i. of type "DD/MM/YYYY", to a new numeric variable for the month and one for the year?
I would like to have a variable with the value 3 (month) and one with the value 1997 (year).
Many thanks.
Related Posts with From string date "DD/MM/YYYY" to month and year variables
to draw vertical line on kdensity ploti have generated kdensity plot using this code: kdensity mpce if year==2019 & household_type ==1…
Simple Question from Begginner about Random Effects Panel DataHello everyone, I need help. What is Wald chi2 and Prob > chi2 means? Please help, thankyou Array…
Interval regression with cross-sectional dependenceI have a panel data with fixed N = 197 countries. T is in years (15). My dependent variable varies b…
Simple question from a beginnerGood morning/afternoon/evening/night I'm new to stata and I'm trying to generate a dummy variable f…
How to clear all graphs saved in macroHi, I am 'foreach' loop command to save and combine 9 different catplot (ssc) graphs (local graphnam…
Subscribe to:
Post Comments (Atom)
0 Response to From string date "DD/MM/YYYY" to month and year variables
Post a Comment