JewcalGregorianDateToHebrewDate

The JewcalGregorianDateToHebrewDate function converts the current/given Gregorian date into a Hebrew date.

DWORD JewcalGregorianDateToHebrewDate(LPJEWCALDATE lpGregorianDate,
                                      LPJEWCALDATE lpHebrewDate);

Parameters

lpGregorianDate
If it is not NULL, it must point to a JEWCALDATE structure which specifies the Gregorian date to convert. If it is NULL, the current date is used.

lpHebrewDate
Must point to a JEWCALDATE structure in which the converted Hebrew date is returned.

Return values

If the function succeeds, the return value is JEWCAL_ERROR_OK.

If the function fails, the return value is other than JEWCAL_ERROR_OK. The function fails if the passed Gregorian date is invalid.

Remarks

The uMonth member of the lpHebrewDate structure contains the Hebrew month number. The assignment of the Hebrew month number to its name is

1Nissan
2Iyyar
3Sivan
4Tammuz
5Av
6Elul
7Tishri
8Heshvan
9Kislev
10Tevet
11Shevat
12Adar (in non-leap years) or Adar I (in leap years)
13Adar II (in leap years)

You can use the JewcalGetHebrewMonthName function to retrieve the name of the month associated with the number.

See Also

JewcalGregorianDateToHebrewDateEx, JewcalHebrewDateToGregorianDate, JewcalGetHebrewMonthName, JEWCALDATE