I have an object x which is as below
x = '2020-06-15 00:00:00+00:00'
print(x)
2020-06-15 00:00:00+00:00
print(type(x))
<class 'pywintypes.datetime'>
I want to convert above object to 2020-06-15 format and also to Year-Quarter format i.e. 2020 Q2
Is there any way to achieve this?