In general you can devide the non religous events into two groups:
You probably know how to determine the date of events that occur on the same date every year. Dates of events in the second group of events can be determined using the nthWeekdayOfMonth function.
Some events that occur on a specific day of the week in a specific week of a month are listed here. Of course this list is not exhaustive.
| Event | Date |
| Mother's day | Second Sunday in May |
| Father's day | Third Sunday in June |
| Start of Daylight Savings Time | Depends on your geographical location. Usually last Sunday of March or April. |
| End of Daylight Savings Time | Depends on your geographical location. Usually last Sunday of October. |
| "Prinsjesdag" (start of the dutch parliamentary year) | Third Tuesday in September. |
| Canadian Thanksgiving | Second Monday of October. |
| American Thanksgiving | Fourth Thursday of November |
nthWeekdayOfMonth takes four or five parameters:
| year | an integer representing the julian or civil gregorian year. |
| month | an integer representing the month |
| wantedWeekday | an integer representing the weekday that you're looking for: 1 for Monday, 2 for Tuesday,...., 7 for Sunday. |
| n | an integer representing the nth occurence of the weekday in the month. 5 or -1 means the last weekday of the month. |
| calendarType | an integer representing the julian of gregorian calendar. 1 is gregorian and 2 is julian. The default is gregorian. |
It returns the day of the month on which the nth weekday of that month in the specified year occurs.
These exmples will determine the date of certain events in the year 2001.
Const Gregorian = 1
Const Julian = 2
Const Monday = 1
Const Tuesday = 2
Const Wednesday = 3
Const Thursday = 4
Const Friday = 5
Const Saturday = 6
Const Sunday = 7
' Mother's Day is on the second Sunday in May
MothersDay = nthWeekdayOfMonth(2001, 5,
Sunday, 2, Gregorian)
' Father's Day is on the third Sunday in June
FathersDay = nthWeekdayOfMonth(2001, 6,
Sunday, 3, Gregorian)
' Daylight Saving Time starts on the lastSunday of March (at least where I live)
StartDST = nthWeekdayOfMonth(2001, 3, Sunday,
5, Gregorian)
' Daylight Saving Time ends on the last Sunday of October (at least where I live)
EndDST = nthWeekdayOfMonth(2001, 10, Sunday,
5, Gregorian)
' Prinsjesdag is on the third Tuesday of september
PrinjesDag = nthWeekdayOfMonth(2001, 9,
Tuesday, 3, Gregorian)
' American Thanksgiving is celebrated on the the fourth Thursday of November
USAThanksGiving = nthWeekdayOfMonth(2001,
11, Thursday, 4, Gregorian)
' Canadian Thanksgiving is celebrated on the second Monday of October
CDNThanksGiving = nthWeekdayOfMonth(2001,
10, Monday, 2, Gregorian)
| Julian Day Number: | 2452004 |
| Gregorian date: | April 4, 2001 |
| Julian date: | March 22, 2001 |
| Hebrew date: | Nisan 11, 5761 |
| Islamic date: | Muharram 10, 1422 |
| Back to Calendar Math. | Other pages by the same author. |