Python Arrow Module: Search a date from a given string using arrow module
Write a Python program to search a date from a given string using arrow module.
Sample Solution:
Python Code:
import arrow
print("\nSearch a date from a string:")
d1 = arrow.get('David was born in 11 June 2003', 'DD MMMM YYYY')
print(d1)
Sample Output:
Search a date from a string: 2003-06-11T00:00:00+00:00
Python Code Editor:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
Previous: Write a Python program to create a datetime from a given timezone-aware datetime using arrow module.
Next: Write a Python program to get a datetime or timestamp representation from current datetime.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics