logo  How To Calculate the Date of Advent
This Chapter
Date Functions
Advent
Bank Hol (UK)
Chinese Calendar
Easter
Easter-Orthodox
Epoch Dates
Hebrew Calendar
Iso-Week Calendar
Nearest Weekday
Week Of Month
Other Dates
Chapters
Home Page
Colours, RGB
Computer Specifications
Dates&Times
Disk Drives
Files
Folders
GPS and OS Ref
VB.Net Forms
Image Files
If & Select
List/Array
Mathematics
NuGet
Sound
String Functions
Sun and Moon
User Controls
Validation
DigitalDan Sites
My Other Sites
Contact Site

Note
Some pages
may contain
inaccuracies
Hits=5
This formula calculates the date of the First Day of Advent, however, as with any Calendrical Calculation, programmers need to be aware of certain limitations.

Public Function AdventStart(yyyy As Integer) As Date
 Dim dat as new Date(yyyy,11,27,12,0,0,0,0)
 While dat.DayOfWeek <> DayOfWeek.Sunday
  dat = dat.AddDays(1)
 End While
 Return dat
End Function
  
 
Other Dates Based on Advent
The following feast dates can be calculated using the Easter Function.

'yyyy = year (as Integer)
Dim FirstSundayOfAdvent as Date = Advent(yyyy)
'First Sunday is also known as Hope Sunday<br />
Dim SecondSundayOfAdvent as Date = Advent(yyyy).AddDays(7)
'Second Sunday is also known as Peace Sunday
Dim ThirdSundayOfAdvent as Date = Advent(yyyy).AddDays(14)
'Third Sunday is also known as Joy Sunday
'Third Sunday is also known as Gaudete Sunday
Dim FourthSundayOfAdvent as Date = Advent(yyyy).AddDays(14)
'Fourth Sunday is also known as Love Sunday
  

DigitalDan.co.uk