Search in the previous month
I've seen some methods using a module dateutil
to do this, but is there a way to do this without using the built-in libraries?
For example, the current month is now July. I can do this using a function datetime.now()
.
What would be the easiest way to get python back to the previous month?
+3
source to share