Hi Hi, I am relatively new to stata and want to reformat a variable.
the var is named p3_start_TS,
and it is a string and looks like this: 26-10-2018 10:08:59
I want to format it to a numeric var with the following format: format %tdDD/NN/CCYY p3_start_TS.
but I just cant seem to get the code right.
thanks!
Related Posts with reformat (destring) var question
how can I calculate indirect effect in GSEM with different link?Hello everyone, I need some help, when I ran the GSEM model with different links , I do not know h…
Help with my codeHi to everyone, I have a problem in stata. I am writing this code: gen end_date4=end_date (end_d…
strs ERROR.Could you please help me to solve this problem when running strs command? I have tried everything an…
Having Y-axis in exponent scalesDear Statalist, I've been looking at the graphs manual and couldn't find an answer to this. I am r…
Appropriate Model to Forecast the Probability of a Rare Binary Outcome in a Time Series?Hi there, I have a dataset with the time-series of stock returns, trading volume, and rare binary s…
Subscribe to:
Post Comments (Atom)
0 Response to reformat (destring) var question
Post a Comment