28 {
29 Weekday w = date.weekday();
30 Day d = date.dayOfMonth();
31 Month m = date.month();
32 Year y = date.year();
33
34 if(isWeekend(w)
35
36 || (d == 1 && m == January)
37
38 || (d == 1 && m == February )
39
40 || (d == 12 && m == March )
41
42 || (d == 1 && m == May)
43
44 || (d == 2 && m == November)
45
46 || (d == 25 && m == December )
47 )
48 return false;
49 if(y == 2022){
50 if(
51 (d == 3 && m == January)
52
53 || (d == 18 && m == January)
54
55 || (d == 1 && m == February )
56
57 || (d == 1 && m == March )
58
59 || (d == 3 && m == May )
60
61 || (d == 15 && m == August)
62
63 || (d == 1 && m == September)
64
65 || (d == 24 && m == October)
66 )
67 return false;
68 }
69 else if (y == 2023){
70 if(
71 (d == 2 && m == January)
72
73 || (d == 3 && m == January)
74
75 || (d == 22 && m == March )
76
77 || (d == 1 && m == May )
78
79 || (d == 20 && m == September)
80
81 || (d == 1 && m == November)
82 )
83 return false;
84 }
85 return true;
86}