Python - finding date in a string

前端 未结 5 1933
误落风尘
误落风尘 2021-02-20 12:24

I want to be able to read a string and return the first date appears in it. Is there a ready module that I can use? I tried to write regexs for all possible date format, but it

5条回答
  •  清酒与你
    2021-02-20 12:48

    Also you can try dateutil.parser... Did not tried it myself, but heard some good comments. python-dateutil

提交回复
热议问题