Please enable JavaScript to view this site.

 

int = jDate1InYear(jDay, jMonth, nWesternYear)

int = jDate2InYear(jDay, jMonth, nWesternYear)

 

These macro functions return the first and, eventually, second date on which a Jewish date (day and month) occurs for the western year nWesternYear.

 

For example, to calculate the date of Yom Kippur in 2020:

nYomKippur = jDate1InYear(1102020)

There are 2 functions because the Jewish calendar is not exactly aligned with the Gregorian, Western, calendar and therefore a given Jewish date may occur more than once in a Gregorian year. To determine if a given Jewish day-month pair occurs more than once in a year, you need to see if the value of jDate2InYear() is larger than 0.

bTwoOccurences = (jDate2InYear(jDay, jMonth, aYear) > 0)

In practice, this concerns only Jewish dates which fall around January 1st, which fortunately does not correspond to any of the major Jewish holidays. But if you are evaluating arbitrary Jewish dates in your macros, you should always check for multiple occurrences.

 

See also: jDayOf,jMonthOf, jYearOf and Jewish dates functions.

 


Topic 161200, last updated on 18-Apr-2020