Representation of the hebrew month can be difficult, if you don't know whether the Hebrew year is a leap year or not. (See Hebrew_LeapYear for details.) To make things easier, you can use negative numbers, where -1 means "the last month of the year", -1 means "the last but one month" and so on. See Jewish holidays for some applications of this feature.
This routine uses several helper routines, which are described on ohter pages of this web site.
Function hebrew_jdn(ByVal iYear, ByVal iMonth, ByVal iDay) As Long Dim jdn As Long Dim counter As Integer If iMonth < 0 Then If Hebrew_LeapYear(iYear) Then iMonth = 14 + iMonth Else iMonth = 13 + iMonth End If End If jdn = Hebrew_ElapsedCalendarDays(iYear) For counter = 1 To (iMonth - 1) Step 1 jdn = jdn + Hebrew_LastDayOfMonth(iYear, counter) Next counter hebrew_jdn = jdn + (iDay - 1 + 347997) End Function
| Julian Day Number: | 2452096 |
| Civil (Gregorian) date: | 5 July 2001 |
| Julian date: | 22 June 2001 |
| Hebrew date: | 14 Tammuz 5761 |
| Islamic date: | 13 Rabi' II 1422 |
| Back to Calendar Math. |
Kees Couprie |
Other pages by the same author. |