Two questions:
1. Please provide code that correctly converts 1/03/201112:00 PM into readable Stata format. It is being read in from an excel file. Notice that it has AM and PM. Also, there is not a space between CCYY and the HH. I am not sure if that matters.
2. My hours are in military time with no minutes. I have read pdf instructions about formatting variables. When the new variable is created, the hours are expressed as 12:59 and then 13:01. I want to create a hourly time series graph that forces the ticks to be at Jan 1 12:00 PM, Jan 2 12 PM and so. When I plot the data, minutes are shown, Jan 1, 2011 12:06, Jan 2, 2011 15:15. My data does not have any minutes.
Fingers crossed this is straight forward.
Many thanks,
Icebetty
1. Please provide code that correctly converts 1/03/201112:00 PM into readable Stata format. It is being read in from an excel file. Notice that it has AM and PM. Also, there is not a space between CCYY and the HH. I am not sure if that matters.
2. My hours are in military time with no minutes. I have read pdf instructions about formatting variables. When the new variable is created, the hours are expressed as 12:59 and then 13:01. I want to create a hourly time series graph that forces the ticks to be at Jan 1 12:00 PM, Jan 2 12 PM and so. When I plot the data, minutes are shown, Jan 1, 2011 12:06, Jan 2, 2011 15:15. My data does not have any minutes.
Fingers crossed this is straight forward.
Many thanks,
Icebetty
Comment