SyntaxFix
Write A Post
Hire A Developer
Questions
There is a high level library dateparser that can determine the past date given natural language, and return the corresponding Python datetime object
dateparser
datetime
from dateparser import parse parse('4 months ago')