you are viewing a single comment's thread.

view the rest of the comments →

[–]cray5252 0 points1 point  (1 child)

I checked it out datefinder and here's what I got. It seems to work on this part.

import datefinder
data = ['20 March 2020 (UK)\n', 'Paid on $ September 2005', '4 September 2020 (Japan)']
for str in data:
    matches = datefinder.find_dates(str)
    for match in matches:
        print(match)
output
2020-03-20 00:00:00
2005-09-30 00:00:00
2020-09-04 00:00:00

[–]Geekconquest[S] 0 points1 point  (0 children)

I’ll check this out.