The JewcalGregorianDateToHebrewDate function converts the current/given Gregorian date into a Hebrew date.
DWORD JewcalGregorianDateToHebrewDate(LPJEWCALDATE lpGregorianDate, LPJEWCALDATE lpHebrewDate);
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. |
Must point to a JEWCALDATE structure in which the converted Hebrew date is returned. |
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.
1 | Nissan |
2 | Iyyar |
3 | Sivan |
4 | Tammuz |
5 | Av |
6 | Elul |
7 | Tishri |
8 | Heshvan |
9 | Kislev |
10 | Tevet |
11 | Shevat |
12 | Adar (in non-leap years) or Adar I (in leap years) |
13 | Adar II (in leap years) |
You can use the JewcalGetHebrewMonthName function to retrieve the name of the month associated with the number.