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
Q about generating survey weight in combined NHANES cycleHello everyone. I have a question about creating/generating NHANES survey weight for the 2011-2012 a…
Parsing a string variable to extract a particular wordHello everyone, I need to extract the word INC or CORPORATION or INCORPORATED from the string varia…
summing over a unique identifier over a panel data of county and yearI want to find the summation of unique rf_id for each unique county in different years of my dataset…
about xtqreg commandhello stata community, Can the xtqreg command be applied to a sample of 12 banks over 13 quarters (…
Fixed effect issue (deleting variables)Hi, I got a question related to my regression.In fact, I'm using merged datasets. first one is bank…
Subscribe to:
Post Comments (Atom)
0 Response to Conversion of dates in STATA
Post a Comment