I\'ve got a bunch of date strings in this form: -
30th November 2009 31st March 2010 30th September 2010
I want them like this: -
In python 3.7, you can use isoformat()
>>> from datetime import datetime >>> datetime.today().date().isoformat().replace("-", "") '20190220'