TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
 Specialized Dev Zones Research Center eBook Library .NET Java C++ Web Dev Architecture Database Security Open Source Enterprise Mobile Special Reports 10-Minute Solutions DevXtra Blogs Slideshow
 Sign up for e-mail newsletters from DevX

Language: VB4,VB5,VB6,VBS
Expertise: Intermediate
Jun 17, 2000

### WEBINAR:On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning

# EasterDate - Evaluate the date of Easter for a given year

``````' Evaluate the Easter date for a given year

Function EasterDate(ByVal Year As Integer) As Date
Dim G As Integer
Dim C As Integer
Dim H As Integer
Dim i As Integer
Dim j As Integer
Dim L As Integer
Dim Month As Integer
Dim Day As Integer

G = Year Mod 19
C = Year \ 100
H = ((C - (C \ 4) - ((8 * C + 13) \ 25) + (19 * G) + 15) Mod 30)
i = H - ((H \ 28) * (1 - (H \ 28) * (29 \ (H + 1)) * ((21 - G) \ 11)))
j = ((Year + (Year \ 4) + i + 2 - C + (C \ 4)) Mod 7)
L = i - j

Month = 3 + ((L + 40) \ 44)
Day = L + 28 - (31 * (Month \ 4))

EasterDate = DateSerial(Year, Month, Day)

End Function
``````
Alberto Falossi

 Submit a Tip Browse "XML" Tips Browse All Tips
Comment and Contribute

(Maximum characters: 1200). You have 1200 characters left.

Thanks for your registration, follow us on our social networks to keep up-to-date