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
An question about hierarchical(multilevel)logistic regression,thank you for your generous help!Hello everyone: I recently read some references about hierarchical linear model and hierarchical log…
Panel unit root test with large N, small THi everyone, I perform panel analysis where cross-section dominates the time dimension (N around 15…
Unusually high number of observations in RDDDear Statalists, I am running a regression discontinuity with the rdrobust plugin. My self created …
Data management for REDCap exports with repeating instrumentsHello, I use Redcap as a database and am trying to use Stata to filter and analyse data from this d…
How to batch (re)label variables using a CSV lookup tableI want to (re)label my variables automatically, based on a variable name → new label lookup table. …
Subscribe to:
Post Comments (Atom)
0 Response to Conversion of dates in STATA
Post a Comment