feiertag
This commit is contained in:
@@ -65,7 +65,7 @@ Public Class cFeiertage
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
Public Function GetLastyDayInyMonth(ByVal day As DayOfWeek, ByVal month As Integer, ByVal year As Integer) As DateTime
|
Public Function GetLastyDayInxMonth(ByVal day As DayOfWeek, ByVal month As Integer, ByVal year As Integer) As DateTime
|
||||||
|
|
||||||
' Create a start date for the last weekday of the month
|
' Create a start date for the last weekday of the month
|
||||||
Dim startDate As DateTime
|
Dim startDate As DateTime
|
||||||
@@ -269,8 +269,8 @@ Public Class cFeiertage
|
|||||||
Case "GB"
|
Case "GB"
|
||||||
If datum = Karfreitag Then Return True
|
If datum = Karfreitag Then Return True
|
||||||
If datum = GetFirstyDayInxMonth(DayOfWeek.Monday, 5, _Year) Then Return True 'Early May Bank Holiday Erster Montag im Mai
|
If datum = GetFirstyDayInxMonth(DayOfWeek.Monday, 5, _Year) Then Return True 'Early May Bank Holiday Erster Montag im Mai
|
||||||
If datum = GetLastyDayInyMonth(DayOfWeek.Monday, 5, _Year) Then Return True 'Spring Bank Holiday Letzter Montag im Mai
|
If datum = GetLastyDayInxMonth(DayOfWeek.Monday, 5, _Year) Then Return True 'Spring Bank Holiday Letzter Montag im Mai
|
||||||
If datum = GetLastyDayInyMonth(DayOfWeek.Monday, 8, _Year) Then Return True 'Summer Bank Holiday Letzter Montag im August
|
If datum = GetLastyDayInxMonth(DayOfWeek.Monday, 8, _Year) Then Return True 'Summer Bank Holiday Letzter Montag im August
|
||||||
|
|
||||||
Return False
|
Return False
|
||||||
Case Else
|
Case Else
|
||||||
|
|||||||
Reference in New Issue
Block a user