Answer the question
In order to leave comments, you need to log in
How to subtract 5 business days from a date?
There is a code that adds working days to a date, but does not subtract:
from dateutil.rrule import *
print("In 4 business days, it's", rrule(DAILY, byweekday=(MO,TU,WE,TH,FR))[4])
Answer the question
In order to leave comments, you need to log in
Have you tried to find and read the documentation for the dateutil module?
Are there appropriate methods?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question