Hello,
in my dataset I have got a date/time variable (e.g. "08jul2009 08:10:00"). Unfortunately during data entry a lot of date information was accidentally entered incorrectly. Therefore I have to extract the time information and use it in conjunction with another date variable that has the accurate date information stored. In order to go about this task I wanted to use tostring to convert my date/time variable to string format and back convert the time information to a numeric variable in the correct format later on. Unfortunately this does not work due to the elapsed time format date/ime information is stored in in Stata. Is there an alternative way of how to separate time information from combined date/time variables in Stata. Thank you a lot for your hints in advance.
Kind regards,
Michael
in my dataset I have got a date/time variable (e.g. "08jul2009 08:10:00"). Unfortunately during data entry a lot of date information was accidentally entered incorrectly. Therefore I have to extract the time information and use it in conjunction with another date variable that has the accurate date information stored. In order to go about this task I wanted to use tostring to convert my date/time variable to string format and back convert the time information to a numeric variable in the correct format later on. Unfortunately this does not work due to the elapsed time format date/ime information is stored in in Stata. Is there an alternative way of how to separate time information from combined date/time variables in Stata. Thank you a lot for your hints in advance.
Kind regards,
Michael
Comment