I find ChatGPT quite good for giving me Python implementations of the datetime module. eg - "please write python code to provide the date 90 days ago." Provides: from datetime import date, timedelta ninety days ago = - timedelta(days=90)