Easter = DateSerial ( X , 3 , OG + OE ) ' Result : Easter sunday as number of days in MarchEnd Function < /syntaxhighlight > This code is only valid for years in the Gregorian calendar.public static Date getEasterDate ( int year ) { int a = year % 19 ;
This code Function < /syntaxhighlight > is only valid for years in the Gregorian calendar .