Hi all,
I would like to convert the following date and time format into Stata format, so that I can performance subtraction between two date and time to find the interval.
1/19/2015 11:33:00 AM
After conversion, I can do:
XXXXXXX - YYYYYY = ZZZZZZ
I have been looking at a few documents on the use of the clock function, but couldn't hack it. Appreciate any helping on the code.
Thanks,
Fred
Related Posts with Convert date and time to Stata format
Dummy variable coefficients are getting automatically omitted by Stata : what to do to keep them ?I am currently trying to replicate Section 4.1. of a paper by "On the Heterogeneous Effects of Sanct…
flipping sign when adding different fixed effectsHi, My research is studying the relationship between certain policy A which is implemented in some …
How do I calculate specific time lapses?Hello, Statalisters. I am working with a prescription database, in which a patient may have one or m…
Hello ! Problems in setting up Maximum Likelihood Estimation of Fixed Effects Linear Regression Model via Optimize routine on MataHello, I have a bit of a silly problem in setting up Maximum Likelihood Estimation of Fixed Effects…
Non-staggered treatment and no control group: DID2SI am looking at the impact of covid on labor demand. All the regions in my sample receive the treatm…
Subscribe to:
Post Comments (Atom)
0 Response to Convert date and time to Stata format
Post a Comment