MESCIUS CalendarGrid for Windows Forms 4.0J > CalendarGridの使い方 > 暦のカスタマイズ > 国民の祝日と休日 |
参考:国民の祝日とは? |
たとえば、2014年の国民の祝日は次のようになります。
' 2014年(平成26年)の国民の祝日 GcCalendarGrid1.Holidays.Add(New DateTime(2014, 1, 1), "元日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 1, 13), "成人の日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 2, 11), "建国記念の日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 3, 21), "春分の日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 4, 29), "昭和の日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 5, 3), "憲法記念日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 5, 4), "みどりの日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 5, 5), "こどもの日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 5, 6), "休日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 7, 21), "海の日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 9, 15), "敬老の日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 9, 23), "秋分の日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 10, 13), "体育の日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 11, 3), "文化の日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 11, 23), "勤労感謝の日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 11, 24), "休日") GcCalendarGrid1.Holidays.Add(New DateTime(2014, 12, 23), "天皇誕生日")
// 2014年(平成26年)の国民の祝日 gcCalendarGrid1.Holidays.Add(new DateTime(2014, 1, 1), "元日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 1, 13), "成人の日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 2, 11), "建国記念の日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 3, 21), "春分の日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 4, 29), "昭和の日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 5, 3), "憲法記念日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 5, 4), "みどりの日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 5, 5), "こどもの日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 5, 6), "休日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 7, 21), "海の日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 9, 15), "敬老の日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 9, 23), "秋分の日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 10, 13), "体育の日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 11, 3), "文化の日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 11, 23), "勤労感謝の日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 11, 24), "休日"); gcCalendarGrid1.Holidays.Add(new DateTime(2014, 12, 23), "天皇誕生日");
沖縄県及び同県内市町村では6月23日が地方公共団体が条例で定める休日となります。(沖縄県の休日を定める条例より)
GcCalendarGrid1.Holidays.Add(New DateTime(2014, 6, 23), "慰霊の日")
gcCalendarGrid1.Holidays.Add(new DateTime(2014, 6, 23), "慰霊の日");