Is there a better way to convert the month string to a number? The month names are provided in language different to the locale so I can't use the %B in datetime. Adjusting the local is not an option.
def stringMonthToNumber(data):
data= re.sub("Januar", "01.", data)
...
data= re.sub("Dezember", "12.", data)
return data
data = "01.Januar2022"