I am looking to convert "september 20 2010 to a python date object using arrow.
I have written functions to replace portions of the text and ended up with 9/20/2016 but I want YYYY-MM-DD format and can't seem to get arrow to recognise my string and convert it to a python date object (without any time).
What has worked and what hasn't.
arrow.get('september 20 2010', '%B %d %Y')
arrow.get('September 20 2010', 'MMMM D YYYY')
Once you get your arrow object, you can display it however you like using format() :
ar = arrow.get('September 20 2010', 'MMMM D YYYY') print(ar.format('YYYY-MM-DD')) # 2010-09-20