I have the following problem. I am checking for an expiration date each time having a different format. One of them is 'Dec 31, 2019 12:00 AM', other - '2019-12-31 11:00' and last (but I excpect more other values) - 'Thu Dec 31 00:00:00 EEST 2019'. I am trying with datetime.strptime(dateToFormat, fmt).strftime("%Y%m%d") but if I need to pass all the fmt it will neve end as I don't know all the formats that could be received.
The showstopper for me is that I cannot use additional modules in python so I am currently stuck with the datetime module only...
Somebody has a clue?
Thanks in advance!