Hello,
I created the month variable into Stata format from 201509 to 2015m9 using the command:
Now, I would like to do the reverse from 2015m9 to 201509. (%tm to numeric)
What would be the command for this? I read the 'date and time' Stata documentation and couldn't find the opposite.
Thank you so much!
I created the month variable into Stata format from 201509 to 2015m9 using the command:
Code:
gen month = ym(floor(month/100), mod(month,100)) format month %tm
What would be the command for this? I read the 'date and time' Stata documentation and couldn't find the opposite.
Thank you so much!
Comment