Hi. I have hourly level data with the format, "2010123123" representing "23:00 Dec 31, 2010". I can convert it into time variable by using "double" but there is a problem for some observations. The data show "00:00 Jan 1, 2011" as 2010123124 and Stata does not automatically change it to the midnight next day and generate an empty cell, shown as below. I would really appreciate it if you could help me to correctly convert it into the next day format. Thank you very much!

Array