Hello,
I have a date/time variable formatted in the following way: "01-24-2019, 03:26 PM" and cannot figure out how to destring it. I have tried several variations of gen date=clock(datetime,"MM-DD-YYYY, hm") but this hasn't worked. Any help would be much appreciated.
Thank you,
Sarah
Related Posts with How to destring date/time with comma
extracting the values of a variable as a local macro in the order that they appear in the dataHi. I'm new to Statalist. Could anyone help me with extracting the values of a variable as a local m…
combining variablesHi all, I have a relatively rudimentary question. I have a dataset with the same variable listed in…
Calculating 5-year compound annual growth rate (CAGR) with missing valuesHi All, I'm trying to calculate the 5-year compound annual growth rate, which is "(endvalue/beginni…
Lasso error message "error in postselection b"Hi everyone, I encountered this error when I was running the Lasso, "error in postselection b". Co…
Generating a variable for user pre and post policy changeHI, So I have panel data for 5 years (4,5,6,7,8) and I am evaluating a policy change that happened …
Subscribe to:
Post Comments (Atom)
0 Response to How to destring date/time with comma
Post a Comment