I have a question about date formats: For example I have this string date; '5 de Novembro de 2019 às 00:00'. And by using Python datetime.strptime, I don't know how to read this format. What is the way to read this date string? its not in English.
Asked
Active
Viewed 27 times
-2
-
1What's the question? Please [edit] to clarify. BTW, if you want tips, see [ask]. – wjandrea May 30 '22 at 20:40
-
2The way `strptime()` interprets month names is controlled by `locale.setlocale()`. – BoarGules May 30 '22 at 20:59
-
What have you tried so far? Have you at least put together a *format* string? Have you read the [docs](https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior)? – wjandrea May 30 '22 at 21:22
-
Possible duplicate: [Parse datetime string not in english](/q/60832129/4518341) – wjandrea May 30 '22 at 21:26