質問

How can I extract the date from an arbitrary string such as "Joe Soap was born on 12 February 1981"?

Python has a wonderful fuzzy parsing functionality provided by python-dateutil as described in this question.

I'm looking for a library that provides the same type of functionality in PHP.

役に立ちましたか?

解決

What about date_parse , but if you know your date format, just use the regex to get what you want.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top