|
I didn't learn C # for a long time. I don't know how to implement it in C #. I can provide an idea of using SQL database:
1. With DATEPART you can return the day of the week, such as January 1, 2017, can be calculated as Monday
2. If it happens to be Saturday, then postpone the holiday by one day
3. If there is supplementary leave, you can calculate the day of 2017/1/1 minus 7 (used last week) or add 7 (used next week) |
|