Dear All, Suppose I have the following data
How can I combine `time' and `time1' into a standard Stata datetime/c format (say, "2010.06.17 08:00:00")?
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float timeid str10 time double time1 1 "2010.06.17" -1.8934272e+12 2 "2010.06.18" -1.8934272e+12 3 "2010.06.20" -1.8934272e+12 4 "2010.06.21" -1.8934272e+12 5 "2010.06.22" -1.8934272e+12 6 "2010.06.23" -1.8934272e+12 7 "2010.06.24" -1.8934272e+12 8 "2010.06.25" -1.8934272e+12 9 "2010.06.27" -1.8934272e+12 10 "2010.06.28" -1.8934272e+12 end format %tchh:MM time1
Comment