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
Combine two age group variables, tell stata to use youngest ageHi, I am a criminology student analysing survey data. I have two age grouped variables which I would…
Formatting in the command: generate _registration_date = date(registration_date, "DMY")Hi, I have a string variable for the registration data and I am trying to destring it. I am running…
Deleting variables with specific values in a specific rowI would like to keep variables if the third-row value is SHD. If the third-row value is not SHD, I w…
Mi impute pmm nearest neighbor matchingHello, I am using mi impute pmm command and I have a question regarding nearest neighbor matching. I…
Retrieve the "at legend" on top of margins tableHi, I'm using margins to calculate about 3600 predicted values in a loop, using the option at() wit…
Subscribe to:
Post Comments (Atom)
0 Response to Separate GMT date into date and military time
Post a Comment