Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
fromisoformat (with python 3.7) solution in Clear category for The First Working Day by Phil15
from datetime import date, timedelta
def vacation(d, days): #fromisoformat thanks python 3.7
d = date.fromisoformat(d) + timedelta(days)
if d.weekday() >= 5:
d += timedelta(7 - d.weekday()) # week_end
return d.isoformat()
Oct. 11, 2018
Comments: