It ’s a process of creating a calendar and taking a day between holidays as a holiday,
Currently,
・ Basic calendar creation is complete.
・ When the holiday is a Sunday, the process of making a Monday a holiday is completed.
You can set a flag on Sundays and public holidays and make it a holiday if the flag is set on Monday.
This time
・ To make a day between holidays a holiday
I thought that it was a national holiday in order from the start date, but
-In the case of 5/4, you must see 5/3 and 5/5. (Look ahead)
• In the case of 4/30, you must see 4/29 and 5/1. (Next month's calendar)
・ If 4/30 and 5/2 are public holidays (not currently), you must also look at the calendar of last month.
I thought I would put a table of holidays from the previous day to the next day, but
If I want to make a 12 month calendar, you will need a huge table,
The process of looking at the previous day and looking at the next day in a day's processing is useless.
What kind of logic should be combined?
-
Answer # 1
Related articles
- javascript - i want to get an array of appointments from a calendar with gas and output them to a spreadsheet every month
- i'm a beginner, i'm creating othello with javascript
- javascript - i want to display two calendars side by side with full calendar
- javascript - i want to reflect the task addition to vuex in the calendar with the task management calendar using vuejs vuex
- javascript - vuejs calendar app i want to dynamically add task content only to the date when the task is added
- javascript super beginner question
- javascript - i have a question for jquery that i would like to help with, and i will post a question
- i have a question about queryselectorall in javascript
- [javascript] question about a little special graph drawing
- javascript - question in switch syntax
- javascript - i have a question about how to specify variables in mainjs
- javascript - [full calendar] i want to change the color of google calendar
- javascript - ruby on rails creating a dynamic bulk registration form
- javascript - when i click on the next month and the previous month on the calendar, the previous calendar display remains
- javascript - creating a quiz app with monaca how to solve'referenceerror: can't find variable: angular'
- javascript - i don't understand the meaning of the question in the coding test
- javascript - i have a question about how to use modal with bootstrap
- make a calendar app using javascript
- javascript - i want to prevent the content text from moving when creating a dropdown menu
- i'm a beginner, i'm creating othello with javascript
It's better to leave yesterday and tomorrow yesterday with variables for 3 days