Parse any date in Java

后端 未结 6 711
时光取名叫无心
时光取名叫无心 2020-11-22 07:31

I know this question is asked quite a bit, and obviously you can\'t parse any arbitrary date. However, I find that the python-dateutil library is able to parse every date I

6条回答
  •  花落未央
    2020-11-22 08:10

    There is a nice library called Natty which I think fits your purposes:

    Natty is a natural language date parser written in Java. Given a date expression, natty will apply standard language recognition and translation techniques to produce a list of corresponding dates with optional parse and syntax information.

    You can also try it online!

提交回复
热议问题