If only timedelta had a month argument in it\'s constructor. So what\'s the simplest way to do this?
EDIT: I wasn\'t thinking too hard about this as was poin
Simplest Way that i have tried Just now
from datetime import datetime from django.utils import timezone current = timezone.now() if current.month == 1: month = 12 else: month = current.month - 1 current = datetime(current.year, month, current.day)