How to execute a script on 2. last Workday of month only?

A few days i had to answer this question.

How to execute a script on 2. last Workday of month only?

With workdays, regular business days was meant.

So, i will explain the way to solve this requirement.
For some statistic jobs it may neccessary to start a script a business day eayrlier than last day of a month.
The first answer is how to get out if today is the last day of month.

  • We want to keep it simple
  • Find a general rule

„How to execute a script on 2. last Workday of month only?“ weiterlesen