I have a data set with the date as shown in the sample data. I wish to separate the variable "date_GMT" into two variables of date and time. Time should be in 24-hour military time format in the Central European Time zone. How can I do this in Stata?. Many thanks for your time in advance.
date_unix date_GMT
1633039440 Sep 30 2021 - 10:04pm
1633039440 Sep 30 2021 - 10:04pm
1633039440 Sep 30 2021 - 10:04pm
1633039920 Sep 30 2021 - 10:12pm
1633039920 Sep 30 2021 - 10:12pm
1633040086 Sep 30 2021 - 10:14pm
1633040100 Sep 30 2021 - 10:15pm
1633040160 Sep 30 2021 - 10:16pm
1633040160 Sep 30 2021 - 10:16pm
Related Posts with Separate GMT date into date and military time
ppmlhdfe: lagged dependent variable as a regressorDear all, I am using ppmlhdfe to estimate a gravity model that includes an auto-regressive (AR) ter…
Different results between Heckman model and separate probit + OLSDear Statalist I'm running a Heckman model and I wanted to compare the results of the Heckman model…
How do I run a Ttest in Stata when I have multiple groups but I only want to compare specific groups? (More Information Below)I am trying to do a basic Ttest. There 6 groups based on gender, race and ethnicity. I want to run a…
Can I make a bivariate histogram for two indicator variables?Let's say I have two dummy variables like this. Code: set obs 100 gen A=runiformint(0,1) gen B=run…
If else inside for each loopI am trying to run the following code and it does not seem to be working. I want to change the refer…
Subscribe to:
Post Comments (Atom)
0 Response to Separate GMT date into date and military time
Post a Comment