Calculate the date after the specified business day. This function is used in recent projects to calculate the date after N working days. now we can solve the problem by thinking of the following solutions. This indicates that the workday is still used in the recent project according to the national regulations to calculate the date after N working days. now I think of the following solution to solve the problem.
This indicates that the work days are calculated according to national regulations, that is, from Monday to Friday and before and after the statutory holidays, the work days are counted as work days, and Saturday, Sunday, and statutory holidays are not counted as work days, the statutory day and the date of the shift can be stored in the database for maintenance.
The code is as follows, and the efficiency is not very high. if you have a better solution, please share it with others.
Bytes. This indicates that the work day is still in accordance with national regulations...