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
Monte carlo simulation to test RE modelHi folks, I run a random effect model and would like to make a robustness test with monte carlo. I …
Create value-weighted decile portfoliosI want to build Dezil portfolios based on the last observed values of the respective calendar year f…
Good sources for learning about Stata macros?Do y'all have recommendations on the best place to point students who have rudimentary Stata familia…
From yearly to quarterly dataHello to all! I am new to this Forum, please apologies if I am not using it right. I have a question…
Problem with MergingHi, I am trying to merge two datasets which look as follows: Master Data: Year State Constituen…
Subscribe to:
Post Comments (Atom)
0 Response to How to destring date/time with comma
Post a Comment