I have a date variable in STATA in the format 13jul2000. I want to convert it into a date with
gen new_date = date(date, "DMY") format date %td
However, the date is given in float instead of string. Is there any way to convert the variable into a string without changing the input?
Related Posts with Conversion of dates in STATA
Gen total var for profitability from one year before to two years after given dateDear all, I am trying to sum the profitability of a given target firm for the period year-1 to year…
Event study approach assumptionsHi there, I know this is not really related to Stata, but I was wondering if someone could still he…
How to loop on all CSV files in several folders and create a separate dta filesHi , I am wondering How to loop on all CSV files in several folders and create a separate dta files …
How to convert a date variableHi Stata Users, I have a numeric date variable in the data ex below, and I need to split it into tw…
Some important statistics at the bottom of x axisI want some statistics that correspond to x-axis and I want the Y axis value to be computed and appe…
Subscribe to:
Post Comments (Atom)
0 Response to Conversion of dates in STATA
Post a Comment