I have a large dataset delimited by | that includes date time stamps for several variables that are bar coded data. There are nurses administering medications in a hospital, e.g. time/date var1 is time med due, var2 when med pulled from dispensing cart, var3 time med was actually administered. Ultimately we will calculate time differences between these variables. We are working to import these data, approximately 1.5 million records into Stata. Our first test import would not recognize the date/times below and imported them as text in the same format as below. What is the appropriate format in the source data for the source time/date variables that will allow Stata to directly import these as date/time not text data? I would like to avoid coding each of the variables to change them to date/time.
Thanks, John
University of Colorado College of Nursing
Code:
849|2014-11-07 16:13:00.000|2014-11-07 16:12:00.000|2014-11-07 16:13:00.000 852|2014-11-07 16:13:00.000|2014-11-07 16:12:00.000|2014-11-07 16:13:00.000 1379|2014-11-07 16:13:00.000|2014-11-07 16:12:00.000|2014-11-07 16:13:00.000 848|2014-11-07 16:13:00.000|2014-11-07 16:12:00.000|2014-11-07 16:13:00.000
University of Colorado College of Nursing
Comment