Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
If I had a hammer... solution in Clear category for The First Working Day by veky
import datetime, calendar
day, week = datetime.date.resolution, list(calendar.day_name).index
def vacation(date, days):
current = datetime.datetime.strptime(date, '%Y-%m-%d').date() + days*day
while current.weekday() >= week('Saturday'): current += day
return current.isoformat()
Aug. 23, 2018
Comments: