I have a date in string format:
extractdate = '20200331'
I want to convert this to "31 Mar 2020".
I have the below so far but always get confused with the datetime operation:
(str(datetime.strptime(extractdate,'%Y%m%d').day) + " "
 + str(datetime.strptime(extractdate,'%Y%m%d').month) + " "
 + str(datetime.strptime(extractdate,'%Y%m%d').year))
which gives me
'31 3 2020'
How do I convert 3 to Mar?