Dear statalist members,
I have a dataset with dates (variable name: observation_date) in the format %td even though the intervals are quarterly, e.g 01jan1970, 01apr1970, 01jul1970, etc. I want to change them in this form 1970Q1, 1970Q2, etc. When I try to change the format to %tq, the years change completely. Could you offer me some guidance on how to proceed please?
I have a dataset with dates (variable name: observation_date) in the format %td even though the intervals are quarterly, e.g 01jan1970, 01apr1970, 01jul1970, etc. I want to change them in this form 1970Q1, 1970Q2, etc. When I try to change the format to %tq, the years change completely. Could you offer me some guidance on how to proceed please?
Comment