Skip to content

Instantly share code, notes, and snippets.

@cursodjangopro
Last active May 11, 2020 17:43
Show Gist options
  • Save cursodjangopro/96f967f53acb48eb307f17f413e14cdf to your computer and use it in GitHub Desktop.
Save cursodjangopro/96f967f53acb48eb307f17f413e14cdf to your computer and use it in GitHub Desktop.
import datefinder
minha_string_com_data = "Guido nasceu em 31/01/1956"
datas_encontradas = datefinder.find_dates(minha_string_com_data, source=True)
for data in datas_encontradas:
print(data)
(datetime.datetime(1956, 1, 31, 0, 0), '31/01/1956')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment