Hello all,
I have a quarterly date variable in the form of 2019q1, 2019q2, 2019q3, 2019q4, 2020q1 and so on. I would like to format the variable in such a way that the the q is capitalized. So for example, this formatted variable will look like 2019Q1, 2019Q2, 2019Q3, 2019Q4, 2020Q1 and so on. My quarterly date variable is a string (str6). Can someone help me out?
Thanks
I have a quarterly date variable in the form of 2019q1, 2019q2, 2019q3, 2019q4, 2020q1 and so on. I would like to format the variable in such a way that the the q is capitalized. So for example, this formatted variable will look like 2019Q1, 2019Q2, 2019Q3, 2019Q4, 2020Q1 and so on. My quarterly date variable is a string (str6). Can someone help me out?
Thanks
Comment