Oct-16-2018, 01:32 PM
Hi snippsat,
Many thanks for your reply.
Is there a way to try parsing it, if it doesnt parse, then it doesnt.
I have dates that contain strings or even months as strings in different languages.
It would be good if no exception is thrown, when the parsing fails.
Many thanks for your reply.
Is there a way to try parsing it, if it doesnt parse, then it doesnt.
I have dates that contain strings or even months as strings in different languages.
It would be good if no exception is thrown, when the parsing fails.
d=datetime(1984, 1, 'May', 0, 0) d.strftime(f'{d:%d/%m/%Y}') print(d)